1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Fix upgrade old version (#99)

* Fix upgrade old version
* Move to an existing if
This commit is contained in:
Maniack Crudelis 2018-03-18 08:59:10 +01:00 committed by JimboJoe
parent fbd32ae1b7
commit 0e56a2f8b4
3 changed files with 2 additions and 0 deletions

View file

@ -176,6 +176,8 @@ do
# then it's the last upgrade to do
if [ "$major_version" -eq "$current_major_version" ]; then
current_major_version=last
# Patch nexcloud files only for the last upgrade.
cp -a ../sources/patches_last_version ../sources/patches
fi
# Load the value for this version