Add current version in temp file

This commit is contained in:
Jeremy Gardais 2019-08-22 09:26:59 +02:00
parent 6ecb7419be
commit c74b9b024b
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
6 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@ if [ "${cachet_current_version}" != "${cachet_new_version}" ]; then
## Create a temp file to monitor
touch -- "${cachet_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for Cachet: ${cachet_new_version}." >> "${cachet_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for Cachet (current: ${cachet_current_version}): ${cachet_new_version}." >> "${cachet_new_version_file}"
else
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: Test version — The current version is up-to-date."

View File

@ -66,7 +66,7 @@ if [ "${fi_current_version}" != "${fi_new_version}" ]; then
## Create a temp file to monitor
touch -- "${fi_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for FusionInventory-Agent: ${fi_new_version}." >> "${fi_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for FusionInventory-Agent (current: ${fi_current_version}): ${fi_new_version}." >> "${fi_new_version_file}"
else
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: Test version — The current version is up-to-date."

View File

@ -66,7 +66,7 @@ if [ "${gitea_current_version}" != "${gitea_new_version}" ]; then
## Create a temp file to monitor
touch -- "${gitea_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for Gitea: ${gitea_new_version}." >> "${gitea_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for Gitea (current: ${gitea_current_version}): ${gitea_new_version}." >> "${gitea_new_version_file}"
else
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: Test version — The current version is up-to-date."

View File

@ -56,7 +56,7 @@ if [ "${searx_current_version}" != "${searx_new_version}" ]; then
## Create a temp file to monitor
touch -- "${searx_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for Searx: ${searx_new_version}." >> "${searx_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for Searx (current: ${searx_current_version}): ${searx_new_version}." >> "${searx_new_version_file}"
else
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: Test version — The current version is up-to-date."

View File

@ -68,7 +68,7 @@ if [ "${ssp_current_version}" != "${ssp_new_version}" ]; then
## Create a temp file to monitor
touch -- "${ssp_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for Self Service Password (SSP): ${ssp_new_version}." >> "${ssp_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for Self Service Password/SSP (current: ${ssp_current_version}): ${ssp_new_version}." >> "${ssp_new_version_file}"
else
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: Test version — The current version is up-to-date."

View File

@ -56,7 +56,7 @@ if [ "${wb_current_version}" != "${wb_new_version}" ]; then
## Create a temp file to monitor
touch -- "${wb_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for Wallabag: ${wb_new_version}." >> "${wb_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for Wallabag (current: ${wb_current_version}): ${wb_new_version}." >> "${wb_new_version_file}"
else
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: Test version — The current version is up-to-date."