From e6ed70fed3eb62a9c5bc760799f8c73cd47d00c6 Mon Sep 17 00:00:00 2001 From: Miraty Date: Thu, 15 Aug 2019 20:09:07 +0200 Subject: [PATCH] Ajout d'un helper --- manifest.json | 6 +++++- scripts/remove | 4 ++-- scripts/upgrade | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 2f8f301..efa9fd7 100644 --- a/manifest.json +++ b/manifest.json @@ -38,7 +38,7 @@ "type": "path", "ask": { "en": "Choose a path for QR code generator", - "fr": "Choisissez un domaine pour le Générateur de codes QR" + "fr": "Choisissez un chemin pour le Générateur de codes QR" }, "example": "/qr", "default": "/qr" @@ -50,6 +50,10 @@ "en": "Is it a public application?", "fr": "Est-ce une application publique ?" }, + "help": { + "en": "Can the QR code generator be used by everyone?", + "fr": "Le générateur de codes QR peut-il être utilisé par tout le monde ?" + }, "default": true } ] diff --git a/scripts/remove b/scripts/remove index c151630..2e03392 100755 --- a/scripts/remove +++ b/scripts/remove @@ -117,10 +117,10 @@ fi #ynh_secure_remove --file="/etc/cron.d/$app" # Remove a directory securely -ynh_secure_remove --file="/etc/$app/" +#ynh_secure_remove --file="/etc/$app/" # Remove the log files -ynh_secure_remove --file="/var/log/$app/" +#ynh_secure_remove --file="/var/log/$app/" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index e34780d..ad19688 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -159,6 +159,8 @@ ynh_store_file_checksum --file="$final_path/options.inc.php" # Set permissions on app files chown -R root: $final_path +chown -R root:$app $final_path/temp +chmod -R g+w $final_path/temp #================================================= # SETUP SSOWAT