Update run

This commit is contained in:
Alexandre
2021-10-16 17:11:38 +02:00
committed by GitHub
parent 2e5ab9bfc6
commit a3f1a643f0

View File

@@ -43,9 +43,9 @@ CURRENTPASSWORD=$( cat /data/portainer_password )
# Reset password if not first run
if bashio::fs.file_exists "/data/hidden"; then
if [ "$CURRENTPASSWORD" != "$PASSWORD" ]; then
rm /data/portainer.db || true
mv /data/portainer.db /data/portainer.old || true
rm /data/hidden || true
bashio::log.warning "... password changed, database reseted"
bashio::log.warning "... password changed, database reseted. Previous version stored in /data/portainer.old"
fi
fi