diff --git a/scripts/install b/scripts/install index c009d1b..1bce592 100755 --- a/scripts/install +++ b/scripts/install @@ -83,9 +83,9 @@ ynh_setup_source --dest_dir="$final_path" mv $final_path/galette/* $final_path/ ynh_secure_remove $final_path/tests -chmod 750 $final_path -chmod -R o-rwx $final_path -chown -R $app:www-data $final_path +#chmod 750 $final_path +#chmod -R o-rwx $final_path +#chown -R $app:www-data $final_path #================================================= # NGINX CONFIGURATION @@ -111,8 +111,8 @@ ynh_script_progression --message="Configuring Galette..." --weight=1 ynh_add_config --template="../conf/config.inc.php.dist" --destination="$final_path/config/config.inc.php" -chown $app $final_path/config -chmod 775 $final_path/config +#chown $app $final_path/config +#chmod 775 $final_path/config #================================================= # GENERIC FINALIZATION @@ -120,11 +120,25 @@ chmod 775 $final_path/config # SECURE FILES AND DIRECTORIES #================================================= +# Set permissions + +chown -R root:www-data $final_path +chmod -R o-rwx $final_path +chmod u+rx $final_path/config +chmod g+rwx $final_path/config + for folder in attachments cache exports files imports logs photos templates_c tempimages do + chmod u+rx $final_path/data/$folder + chmod g+rwx $final_path/data/$folder +done + + +#for folder in attachments cache exports files imports logs photos templates_c tempimages +#do chown -R $app "$final_path/data/$folder" chmod -R 775 "$final_path/data/$folder" -done +#done #================================================= # SETUP LOGROTATE