From 40e081cecd32d7876e0aead2409986b306c600ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 26 Apr 2024 21:58:54 +0200 Subject: [PATCH] Use = intead of space for helper args to avoid issue with parameter --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 115aa71..8231484 100755 --- a/scripts/install +++ b/scripts/install @@ -52,7 +52,7 @@ ynh_add_systemd_config yunohost service add "$app" --description=XWiki --log="/var/log/$app/$app.log" -ynh_use_logrotate --logfile "/var/log/$app" +ynh_use_logrotate --logfile="/var/log/$app" #================================================= # INSTALL EXTENSIONS diff --git a/scripts/restore b/scripts/restore index b3b4aac..a8ef1aa 100755 --- a/scripts/restore +++ b/scripts/restore @@ -35,7 +35,7 @@ set_permissions systemctl enable $app.service --quiet yunohost service add $app --description=XWiki --log="/var/log/$app/$app.log" -ynh_use_logrotate --logfile "/var/log/$app" +ynh_use_logrotate --logfile="/var/log/$app" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 371a951..7a7bf68 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -11,7 +11,7 @@ source /usr/share/yunohost/helpers upgrade_type=$(ynh_check_app_version_changed) -if ynh_compare_current_package_version --comparison le --version '14.10.8~ynh1'; then +if ynh_compare_current_package_version --comparison=le --version='14.10.8~ynh1'; then ynh_die --mesage='Upgrade from this version is not supported. Please backup and restore manually the data after a clean new install' fi @@ -47,7 +47,7 @@ ynh_add_systemd_config yunohost service add "$app" --description=XWiki --log="/var/log/$app/$app.log" -ynh_use_logrotate --logfile "/var/log/$app" +ynh_use_logrotate --logfile="/var/log/$app" #================================================= # ADD A CONFIGURATION