Add current version in temp file
This commit is contained in:
parent
6ecb7419be
commit
c74b9b024b
|
@ -56,7 +56,7 @@ if [ "${cachet_current_version}" != "${cachet_new_version}" ]; then
|
||||||
|
|
||||||
## Create a temp file to monitor
|
## Create a temp file to monitor
|
||||||
touch -- "${cachet_new_version_file}"
|
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
|
else
|
||||||
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date."
|
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date."
|
||||||
|
|
|
@ -66,7 +66,7 @@ if [ "${fi_current_version}" != "${fi_new_version}" ]; then
|
||||||
|
|
||||||
## Create a temp file to monitor
|
## Create a temp file to monitor
|
||||||
touch -- "${fi_new_version_file}"
|
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
|
else
|
||||||
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date."
|
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date."
|
||||||
|
|
|
@ -66,7 +66,7 @@ if [ "${gitea_current_version}" != "${gitea_new_version}" ]; then
|
||||||
|
|
||||||
## Create a temp file to monitor
|
## Create a temp file to monitor
|
||||||
touch -- "${gitea_new_version_file}"
|
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
|
else
|
||||||
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date."
|
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date."
|
||||||
|
|
|
@ -56,7 +56,7 @@ if [ "${searx_current_version}" != "${searx_new_version}" ]; then
|
||||||
|
|
||||||
## Create a temp file to monitor
|
## Create a temp file to monitor
|
||||||
touch -- "${searx_new_version_file}"
|
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
|
else
|
||||||
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date."
|
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date."
|
||||||
|
|
|
@ -68,7 +68,7 @@ if [ "${ssp_current_version}" != "${ssp_new_version}" ]; then
|
||||||
|
|
||||||
## Create a temp file to monitor
|
## Create a temp file to monitor
|
||||||
touch -- "${ssp_new_version_file}"
|
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
|
else
|
||||||
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date."
|
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date."
|
||||||
|
|
|
@ -56,7 +56,7 @@ if [ "${wb_current_version}" != "${wb_new_version}" ]; then
|
||||||
|
|
||||||
## Create a temp file to monitor
|
## Create a temp file to monitor
|
||||||
touch -- "${wb_new_version_file}"
|
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
|
else
|
||||||
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date."
|
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date."
|
||||||
|
|
Loading…
Reference in New Issue