mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
Update run
This commit is contained in:
@@ -18,9 +18,8 @@ bashio::log.info "Starting Portainer..."
|
|||||||
CURRENTPASSWORD=""
|
CURRENTPASSWORD=""
|
||||||
PASSWORD=$(bashio::config 'password')
|
PASSWORD=$(bashio::config 'password')
|
||||||
|
|
||||||
if ! bashio::fs.file_exists "/data/portainer_password"; then
|
touch "/data/portainer_password"
|
||||||
CURRENTPASSWORD=$( cat /data/portainer_password )
|
CURRENTPASSWORD=$( cat /data/portainer_password )
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $CURRENTPASSWORD != $PASSWORD ]; then
|
if [ $CURRENTPASSWORD != $PASSWORD ]; then
|
||||||
rm /data/portainer.db
|
rm /data/portainer.db
|
||||||
|
|||||||
Reference in New Issue
Block a user