Update run

This commit is contained in:
Alexandre
2021-05-06 21:59:33 +02:00
committed by GitHub
parent 30142f7825
commit b68316a01e

View File

@@ -18,9 +18,8 @@ bashio::log.info "Starting Portainer..."
CURRENTPASSWORD=""
PASSWORD=$(bashio::config 'password')
if ! bashio::fs.file_exists "/data/portainer_password"; then
touch "/data/portainer_password"
CURRENTPASSWORD=$( cat /data/portainer_password )
fi
if [ $CURRENTPASSWORD != $PASSWORD ]; then
rm /data/portainer.db