From a0aba84c483ffbcac86869eb6124c3b40d2494ef Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 31 Aug 2021 01:41:13 +0200 Subject: [PATCH 1/3] Update check_process --- check_process | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_process b/check_process index 0868ccb..8399f03 100644 --- a/check_process +++ b/check_process @@ -9,7 +9,7 @@ setup_sub_dir=1 setup_root=1 setup_nourl=0 - setup_private=1 + setup_private=0 setup_public=1 upgrade=1 backup_restore=1 From da8a71a1e791026010a150f627a682f0ac0f6dee Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 31 Aug 2021 19:26:31 +0200 Subject: [PATCH 2/3] Remove yunohost app ssowatconf --- scripts/install | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/install b/scripts/install index 7704be8..00dbe4f 100644 --- a/scripts/install +++ b/scripts/install @@ -187,9 +187,6 @@ ynh_app_setting_set "$app" protected_uris "/" domainregex=$(echo "$domain" | sed 's/-/\%&/g') ynh_app_setting_set "$app" skipped_regex "$domainregex/jsonrpc.*$,$domainregex/image.*$" -# Reload SSOwat config -yunohost app ssowatconf - # Make app public if necessary if [ $is_public -eq 1 ] then From c993bea73fd98b8b2a816e373df202abe40039cc Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 31 Aug 2021 19:29:14 +0200 Subject: [PATCH 3/3] Manage permissions --- scripts/install | 4 +++- scripts/restore | 4 +++- scripts/upgrade | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 00dbe4f..a6e5f51 100644 --- a/scripts/install +++ b/scripts/install @@ -159,7 +159,9 @@ fi ynh_script_progression --message="Securing files and directories..." # Set permissions to app files -chown -R $app:$app $final_path +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:$app "$final_path" usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app" #================================================= diff --git a/scripts/restore b/scripts/restore index b38ec57..8517442 100644 --- a/scripts/restore +++ b/scripts/restore @@ -138,7 +138,9 @@ ynh_replace_string "allowed_users=console" "allowed_users=anybody" /etc/X11/Xwra ynh_script_progression --message="Restoring user rights..." # Restore permissions on app files -chown -R $app:$app $final_path +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:$app "$final_path" usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 023c556..e24bf73 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -140,7 +140,9 @@ ynh_add_systemd_config ynh_script_progression --message="Securing files and directories..." # Set permissions on app files -chown -R $app:$app $final_path +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:$app "$final_path" usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app" #=================================================