mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update run
This commit is contained in:
@@ -34,12 +34,12 @@ fi
|
|||||||
|
|
||||||
# Set password
|
# Set password
|
||||||
CURRENTPASSWORD=""
|
CURRENTPASSWORD=""
|
||||||
PASSWORD=$(bashio::config 'password')
|
PASSWORD="$(bashio::config 'password')"
|
||||||
if ! bashio::config.has_value 'password'; then
|
if ! bashio::config.has_value 'password'; then
|
||||||
PASSWORD="empty"
|
PASSWORD="empty"
|
||||||
fi
|
fi
|
||||||
touch "/data/portainer_password"
|
touch "/data/portainer_password"
|
||||||
CURRENTPASSWORD=$( cat /data/portainer_password )
|
CURRENTPASSWORD="$( cat /data/portainer_password )"
|
||||||
|
|
||||||
# Reset password if not first run
|
# Reset password if not first run
|
||||||
if bashio::fs.file_exists "/data/hidden"; then
|
if bashio::fs.file_exists "/data/hidden"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user