From 8872ae0cfb9cd54645dfc67c84d940c0ce60fdce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 22 Oct 2022 18:39:03 +0200 Subject: [PATCH] Fix linter (#96) * Auto-update README * PHP8 * Auto-update README * 13.1.0 * Auto-update README * fix linter Co-authored-by: yalh76 Co-authored-by: yunohost-bot --- scripts/install | 1 - scripts/upgrade | 23 ----------------------- 2 files changed, 24 deletions(-) diff --git a/scripts/install b/scripts/install index b03f18c..15504c4 100644 --- a/scripts/install +++ b/scripts/install @@ -46,7 +46,6 @@ ynh_script_progression --message="Storing installation settings..." ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url -ynh_app_setting_set --app=$app --key=is_public --value=$is_public ynh_app_setting_set --app=$app --key=language --value=$language ynh_app_setting_set --app=$app --key=admin --value=$admin diff --git a/scripts/upgrade b/scripts/upgrade index d200b7e..8732def 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -20,7 +20,6 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) language=$(ynh_app_setting_get --app=$app --key=language) admin=$(ynh_app_setting_get --app=$app --key=admin) -is_public=$(ynh_app_setting_get --app=$app --key=is_public) final_path=$(ynh_app_setting_get --app=$app --key=final_path) db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$db_name @@ -193,12 +192,6 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Upgrading Piwigo with cURL..." --weight=6 -# Set the app as temporarily public for cURL call -if ! ynh_permission_has_user --permission="main" --user="visitors" -then - ynh_permission_update --permission="main" --add="visitors" -fi - # Reload NGINX ynh_systemd_action --service_name=nginx --action=reload @@ -257,9 +250,6 @@ if [ -f $final_path/plugins/Ldap_Login/data.dat ] ; then ynh_secure_remove --file=$final_path/plugins/Ldap_Login/data.dat fi -# Remove the public access -ynh_permission_update --permission="main" --remove="visitors" - #================================================= # GENERIC FINALIZATION #================================================= @@ -276,19 +266,6 @@ chown $app: "/var/log/${app}FailedLogins.log" ynh_add_fail2ban_config --logpath="/var/log/${app}FailedLogins.log" --failregex="ip=" --max_retry=6 -#================================================= -# SETUP SSOWAT -#================================================= -ynh_script_progression --message="Configuring permissions..." --weight=1 - -# Make app public if necessary -if [ $is_public -eq 1 ] -then - # Everyone can access the app. - # The "main" permission is automatically created before the install script. - ynh_permission_update --permission="main" --add="visitors" -fi - #================================================= # RELOAD NGINX #=================================================