From cfc6160d1f257aea8942c8fa0ce96972f802e315 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Fri, 8 Dec 2023 22:55:25 +0100 Subject: [PATCH] [fix] Remove permissions to others --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 6ee74ed..1cb9e81 100755 --- a/scripts/install +++ b/scripts/install @@ -260,7 +260,7 @@ ynh_multimedia_addaccess $app chown -R $app:www-data "$install_dir" chown -R $app: "$data_dir" chmod -R a=r,u+w,a+X $install_dir/ -chmod -R a=r,u+w,a+X $data_dir/data/ +chmod -R ug=r,o=---,u+w,ug+X $data_dir/data/ chmod 640 "$install_dir/config/config.php" chmod 755 /home/yunohost.app chmod 750 $install_dir diff --git a/scripts/restore b/scripts/restore index 482b776..4286a7e 100755 --- a/scripts/restore +++ b/scripts/restore @@ -82,7 +82,7 @@ ynh_restore_file --origin_path="$data_dir" --not_mandatory chown -R $app:www-data "$install_dir" chown -R $app: "$data_dir" chmod -R a=r,u+w,a+X $install_dir/ -chmod -R a=r,u+w,a+X $data_dir/data/ +chmod -R ug=r,o=---,u+w,ug+X $data_dir/data/ chmod 640 "$install_dir/config/config.php" chmod 755 /home/yunohost.app chmod 750 $install_dir diff --git a/scripts/upgrade b/scripts/upgrade index 57eb833..602afe7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -359,7 +359,7 @@ exec_occ background:cron chown -R $app:www-data "$install_dir" chown -R $app: "$data_dir" chmod -R a=r,u+w,a+X $final_path/ -chmod -R a=r,u+w,a+X $datadir/data/ +chmod -R ug=r,o=---,u+w,ug+X $data_dir/data/ chmod 640 "$install_dir/config/config.php" chmod 755 /home/yunohost.app chmod 750 $install_dir