diff --git a/portainer/rootfs/etc/services.d/portainer/run b/portainer/rootfs/etc/services.d/portainer/run index 81e7e7135..5e3e5337a 100644 --- a/portainer/rootfs/etc/services.d/portainer/run +++ b/portainer/rootfs/etc/services.d/portainer/run @@ -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