mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
Add status message to failed upgrade and show current version
This commit is contained in:
parent
a45ef9d4df
commit
7429dfc1bf
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user