From 8a13b62712aa356250cf6c246e3720f4cb679d83 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 8 Dec 2020 09:21:05 +0100 Subject: [PATCH] Fix --- scripts/install | 6 +++--- scripts/restore | 7 +++---- scripts/upgrade | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index 1af54a3..f25591e 100755 --- a/scripts/install +++ b/scripts/install @@ -103,7 +103,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # Set permissions to app files -chown -R $app: $final_path # modif perso +chown -R $app: $final_path #================================================= # SETUP APPLICATION WITH CURL @@ -120,13 +120,13 @@ ynh_script_progression --message="Finalizing installation..." ynh_local_curl "/install.php" "form_sent=1" "install_lang=English" "req_db_type=mysqli_innodb" "req_db_host=localhost" "req_db_name=$db_name" "db_username=$db_user" "db_password=$db_pwd" "db_prefix=fl_" "req_username=$admin" "req_password1=$password" "req_password2=$password" "req_email=$admin@$domain" "req_title=YunoFluxBB" "desc=FluxBB_package_for_Yunohost" "req_base_url=https://$domain$path_url" "req_default_lang=English" "req_default_style=Air" -ynh_secure_remove "$final_path/install.php" # modif perso +ynh_secure_remove "$final_path/install.php" #================================================= # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add $app --log="/var/log/$app/$app.log" +yunohost service add $app --description="Fast, light, user-friendly forum software" --log="/var/log/$app/$app.log" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 3366826..cc843f2 100755 --- a/scripts/restore +++ b/scripts/restore @@ -72,8 +72,7 @@ ynh_system_user_create $app #================================================= # Restore permissions on app files -chown -R root: $final_path -chown -R $app:$app $final_path # modif perso +chown -R $app: $final_path #================================================= # RESTORE THE PHP-FPM CONFIGURATION @@ -94,14 +93,14 @@ ynh_mysql_connect_as $db_name $db_pwd $db_name < ./db.sql # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add $app --log="/var/log/$app/$app.log" +yunohost service add $app --description="Fast, light, user-friendly forum software" --log="/var/log/$app/$app.log" #================================================= # GENERIC FINALIZATION #================================================= # RELOAD NGINX AND PHP-FPM #================================================= -ynh_script_progression --message="Reloading nginx web server and php-fpm..." +ynh_script_progression --message="Reloading NGINX web server and PHP-FPM..." systemctl reload php$phpversion-fpm systemctl reload nginx diff --git a/scripts/upgrade b/scripts/upgrade index e69100d..2fc5a81 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,13 +118,13 @@ ynh_secure_remove "$final_path/install.php" #================================================= # Set permissions on app files -chown -R $app: $final_path # modif perso +chown -R $app: $final_path #================================================= # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add $app --log="/var/log/$app/$app.log" +yunohost service add $app --description="Fast, light, user-friendly forum software" --log="/var/log/$app/$app.log" #================================================= # RELOAD NGINX