mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-21 20:29:09 +02:00
Update CHANGELOG.md
This commit is contained in:
committed by
Alexander Groß
parent
e72353b3fa
commit
e20f66ada6
22
debian/scripts/maintenance.sh
vendored
22
debian/scripts/maintenance.sh
vendored
@@ -21,10 +21,10 @@ display_help() {
|
|||||||
echo ''
|
echo ''
|
||||||
echo "COMMANDS"
|
echo "COMMANDS"
|
||||||
echo "------------------"
|
echo "------------------"
|
||||||
echo " status > gives the current state of maintenance mode"
|
echo " status > reports the current state of maintenance mode"
|
||||||
echo " on > switches mantenance mode ON"
|
echo " on > switches mantenance mode ON"
|
||||||
echo " off > switches mantenance mode OFF and shuts down/ restarts container"
|
echo " off > switches mantenance mode OFF and shuts down or restarts container"
|
||||||
echo " upgrade > will put container to maintenance mode and upgrade iobroker"
|
echo " upgrade > will put container to maintenance mode and upgrade ioBroker"
|
||||||
echo " help > shows this help"
|
echo " help > shows this help"
|
||||||
echo ''
|
echo ''
|
||||||
echo "OPTIONS"
|
echo "OPTIONS"
|
||||||
@@ -101,11 +101,11 @@ switch_off() {
|
|||||||
if [ $(cat /opt/scripts/.docker_config/.healthcheck) == 'maintenance' ] && [ "$autoconfirm" == "no" ] # maintenance mode ON / autoconfirm = no
|
if [ $(cat /opt/scripts/.docker_config/.healthcheck) == 'maintenance' ] && [ "$autoconfirm" == "no" ] # maintenance mode ON / autoconfirm = no
|
||||||
then
|
then
|
||||||
echo 'You are now going to deactivate maintenance mode for this container.'
|
echo 'You are now going to deactivate maintenance mode for this container.'
|
||||||
echo 'Depending on the restart policy, your container will be stopped/ restarted immediately.'
|
echo 'Depending on the restart policy, your container will be stopped or restarted immediately.'
|
||||||
read -p 'Do you want to continue [yes/no]? ' A
|
read -p 'Do you want to continue [yes/no]? ' A
|
||||||
if [ "$A" == "y" ] || [ "$A" == "Y" ] || [ "$A" == "yes" ]
|
if [ "$A" == "y" ] || [ "$A" == "Y" ] || [ "$A" == "yes" ]
|
||||||
then
|
then
|
||||||
echo 'Deactivating maintenance mode and forcing container to stop/ restart...'
|
echo 'Deactivating maintenance mode and forcing container to stop or restart...'
|
||||||
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
||||||
pkill -u root
|
pkill -u root
|
||||||
echo 'Done.'
|
echo 'Done.'
|
||||||
@@ -116,9 +116,9 @@ switch_off() {
|
|||||||
elif [ $(cat /opt/scripts/.docker_config/.healthcheck) == 'maintenance' ] && [ "$autoconfirm" == "yes" ] # maintenance mode ON / autoconfirm = yes
|
elif [ $(cat /opt/scripts/.docker_config/.healthcheck) == 'maintenance' ] && [ "$autoconfirm" == "yes" ] # maintenance mode ON / autoconfirm = yes
|
||||||
then
|
then
|
||||||
echo 'You are now going to deactivate maintenance mode for this container.'
|
echo 'You are now going to deactivate maintenance mode for this container.'
|
||||||
echo 'Depending on the restart policy, your container will be stopped/ restarted immediately.'
|
echo 'Depending on the restart policy, your container will be stopped or restarted immediately.'
|
||||||
echo 'This command was already confirmed by -y or --yes option.'
|
echo 'This command was already confirmed by -y or --yes option.'
|
||||||
echo 'Deactivating maintenance mode and forcing container to stop/ restart...'
|
echo 'Deactivating maintenance mode and forcing container to stop or restart...'
|
||||||
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
||||||
pkill -u root
|
pkill -u root
|
||||||
echo 'Done.'
|
echo 'Done.'
|
||||||
@@ -135,7 +135,7 @@ upgrade() {
|
|||||||
echo 'You are now going to upgrade your js-controller.'
|
echo 'You are now going to upgrade your js-controller.'
|
||||||
echo 'As this will change data in /opt/iobroker, make sure you have a backup!'
|
echo 'As this will change data in /opt/iobroker, make sure you have a backup!'
|
||||||
echo 'During the upgrade process the container will automatically switch into maintenance mode and stop ioBroker.'
|
echo 'During the upgrade process the container will automatically switch into maintenance mode and stop ioBroker.'
|
||||||
echo 'Depending of the restart policy, you container will be stoped/ restarted automatically after the upgrade.'
|
echo 'Depending of the restart policy, your container will be stopped or restarted automatically after the upgrade.'
|
||||||
read -p 'Do you want to continue [yes/no]? ' A
|
read -p 'Do you want to continue [yes/no]? ' A
|
||||||
if [ "$A" == "y" ] || [ "$A" == "Y" ] || [ "$A" == "yes" ]
|
if [ "$A" == "y" ] || [ "$A" == "Y" ] || [ "$A" == "yes" ]
|
||||||
then
|
then
|
||||||
@@ -152,7 +152,7 @@ upgrade() {
|
|||||||
iobroker upgrade self
|
iobroker upgrade self
|
||||||
sleep 1
|
sleep 1
|
||||||
echo 'Done.'
|
echo 'Done.'
|
||||||
echo 'Container will be stopped/ restarted in 5 seconds...'
|
echo 'Container will be stopped or restarted in 5 seconds...'
|
||||||
sleep 5
|
sleep 5
|
||||||
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
||||||
pkill -u root
|
pkill -u root
|
||||||
@@ -165,7 +165,7 @@ upgrade() {
|
|||||||
echo 'You are now going to upgrade your js-controller.'
|
echo 'You are now going to upgrade your js-controller.'
|
||||||
echo 'As this will change data in /opt/iobroker, make sure you have a backup!'
|
echo 'As this will change data in /opt/iobroker, make sure you have a backup!'
|
||||||
echo 'During the upgrade process the container will automatically switch into maintenance mode and stop ioBroker.'
|
echo 'During the upgrade process the container will automatically switch into maintenance mode and stop ioBroker.'
|
||||||
echo 'Depending of the restart policy, you container will be stoped/ restarted automatically after the upgrade.'
|
echo 'Depending of the restart policy, your container will be stopped or restarted automatically after the upgrade.'
|
||||||
echo 'This command was already confirmed by -y or --yes option.'
|
echo 'This command was already confirmed by -y or --yes option.'
|
||||||
echo 'Activating maintenance mode...'
|
echo 'Activating maintenance mode...'
|
||||||
echo "maintenance" > /opt/scripts/.docker_config/.healthcheck
|
echo "maintenance" > /opt/scripts/.docker_config/.healthcheck
|
||||||
@@ -180,7 +180,7 @@ upgrade() {
|
|||||||
iobroker upgrade self
|
iobroker upgrade self
|
||||||
sleep 1
|
sleep 1
|
||||||
echo 'Done.'
|
echo 'Done.'
|
||||||
echo 'Container will be stopped/ restarted in 5 seconds...'
|
echo 'Container will be stopped or restarted in 5 seconds...'
|
||||||
sleep 5
|
sleep 5
|
||||||
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
||||||
pkill -u root
|
pkill -u root
|
||||||
|
|||||||
Reference in New Issue
Block a user