Update run

This commit is contained in:
Alexandre
2021-10-15 18:25:59 +02:00
committed by GitHub
parent be17709160
commit 32c2231b0f

View File

@@ -18,12 +18,12 @@ options+=(--host unix:///var/run/docker.sock)
if bashio::fs.file_exists "/data/manual_override" && bashio::config.true 'manual_override' ; then
bashio::log.warning '... "manual_override" option is checked, portainer launched in manual override mode with no configuration'
exec /opt/portainer/portainer "${options[@]}"
elseif ! bashio::fs.file_exists "/data/manual_override" && bashio::config.true 'manual_override' ; then
elif ! bashio::fs.file_exists "/data/manual_override" && bashio::config.true 'manual_override' ; then
rm /data/portainer.db || true
touch "/data/manual_override"
bashio::log.warning '... "manual_override" option is checked, previous configuration removed, portainer launched in manual override mode with no configuration'
exec /opt/portainer/portainer "${options[@]}"
elseif bashio::fs.file_exists "/data/manual_override" && ! bashio::config.true 'manual_override' ; then
elif bashio::fs.file_exists "/data/manual_override" && ! bashio::config.true 'manual_override' ; then
rm /data/manual_override
fi