diff --git a/portainer/rootfs/etc/services.d/portainer/run b/portainer/rootfs/etc/services.d/portainer/run index 7b07d968a..8a5f6db08 100644 --- a/portainer/rootfs/etc/services.d/portainer/run +++ b/portainer/rootfs/etc/services.d/portainer/run @@ -21,7 +21,7 @@ PASSWORD=$(bashio::config 'password') touch "/data/portainer_password" CURRENTPASSWORD=$( cat /data/portainer_password ) -if [ $CURRENTPASSWORD !== $PASSWORD ]; then +if [ "$CURRENTPASSWORD" != "$PASSWORD" ]; then rm /data/portainer.db bashio::log.warning "... password changed, database reseted" fi