Add status message to failed upgrade and show current version

This commit is contained in:
Daniel Hansson 2016-12-09 17:53:32 +01:00 committed by GitHub
parent a45ef9d4df
commit 7429dfc1bf

View File

@ -196,9 +196,6 @@ sudo apt-get autoclean
# Update GRUB, just in case
sudo update-grub
service apache2 restart
sleep 2
if [[ "$NCVERSION" == "$CURRENTVERSION" ]]
then
echo
@ -213,6 +210,7 @@ then
else
echo
echo "Latest version is: $NCVERSION. Current version is: $CURRENTVERSION."
sudo -u www-data php $NCPATH/occ status
echo "UPGRADE FAILED!"
echo "Your files are still backed up at $BACKUP. No worries!"
exit 1