mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-20 07:41:48 +02:00
Update run
This commit is contained in:
@@ -21,7 +21,7 @@ PASSWORD=$(bashio::config 'password')
|
|||||||
touch "/data/portainer_password"
|
touch "/data/portainer_password"
|
||||||
CURRENTPASSWORD=$( cat /data/portainer_password )
|
CURRENTPASSWORD=$( cat /data/portainer_password )
|
||||||
|
|
||||||
if [ $CURRENTPASSWORD !== $PASSWORD ]; then
|
if [ "$CURRENTPASSWORD" != "$PASSWORD" ]; then
|
||||||
rm /data/portainer.db
|
rm /data/portainer.db
|
||||||
bashio::log.warning "... password changed, database reseted"
|
bashio::log.warning "... password changed, database reseted"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user