mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Move to an existing if
This commit is contained in:
parent
5b83d679d2
commit
dbde143395
1 changed files with 2 additions and 6 deletions
|
@ -176,6 +176,8 @@ do
|
||||||
# then it's the last upgrade to do
|
# then it's the last upgrade to do
|
||||||
if [ "$major_version" -eq "$current_major_version" ]; then
|
if [ "$major_version" -eq "$current_major_version" ]; then
|
||||||
current_major_version=last
|
current_major_version=last
|
||||||
|
# Patch nexcloud files only for the last upgrade.
|
||||||
|
cp -a ../sources/patches_last_version ../sources/patches
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Load the value for this version
|
# Load the value for this version
|
||||||
|
@ -191,12 +193,6 @@ do
|
||||||
# Create a temporary directory
|
# Create a temporary directory
|
||||||
tmpdir=$(mktemp -d)
|
tmpdir=$(mktemp -d)
|
||||||
|
|
||||||
# Patch nexcloud files only for the last upgrade.
|
|
||||||
if [ "$current_major_version" = "last" ]
|
|
||||||
then
|
|
||||||
cp -a ../sources/patches_last_version ../sources/patches
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install the next nextcloud version in $tmpdir
|
# Install the next nextcloud version in $tmpdir
|
||||||
ynh_setup_source "$tmpdir"
|
ynh_setup_source "$tmpdir"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue