mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-14 19:38:04 +02:00
Update run
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user