mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
[fix] "last" don't pass correctly
This commit is contained in:
parent
30a3d9ceab
commit
e821c6c06b
1 changed files with 3 additions and 3 deletions
|
@ -200,11 +200,11 @@ fi
|
|||
# Define a function to execute commands with `occ`
|
||||
exec_occ() {
|
||||
# Backward compatibility to upgrade from NC14 or older version
|
||||
if [ $current_major_version -gt 14 ]
|
||||
if [ $current_major_version -lt 15 ]
|
||||
then
|
||||
NEXTCLOUD_PHP_VERSION=$YNH_PHP_VERSION
|
||||
else
|
||||
NEXTCLOUD_PHP_VERSION="7.0"
|
||||
else
|
||||
NEXTCLOUD_PHP_VERSION=$YNH_PHP_VERSION
|
||||
fi
|
||||
(cd "$final_path" && exec_as "$app" \
|
||||
php$NEXTCLOUD_PHP_VERSION occ --no-interaction --no-ansi "$@")
|
||||
|
|
Loading…
Add table
Reference in a new issue