Update run.sh

This commit is contained in:
Wonderfall
2017-05-09 22:30:08 +02:00
committed by GitHub
parent 733a2b6c12
commit b2daa52e12

View File

@ -32,16 +32,7 @@ if [ ! -f /config/config.php ]; then
# New installation, run the setup
/usr/local/bin/setup.sh
else
if [ $(occ | head -n 1 | grep -ic "Nextcloud version.*") == "1" ] ; then
occ upgrade
if [ \( $? -ne 0 \) -a \( $? -ne 3 \) ]; then
echo "Trying Nextcloud upgrade again to work around Nextcloud upgrade bug..."
occ upgrade
if [ \( $? -ne 0 \) -a \( $? -ne 3 \) ]; then exit 1; fi
occ maintenance:mode --off
echo "...which seemed to work."
fi
fi
fi
exec su-exec $UID:$GID /bin/s6-svscan /etc/s6.d