1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galette_ynh.git synced 2024-09-03 18:36:28 +02:00

Update install

This commit is contained in:
ericgaspar 2021-07-22 15:58:43 +02:00
parent 7a39422640
commit c8f2ad32df

View file

@ -83,9 +83,9 @@ ynh_setup_source --dest_dir="$final_path"
mv $final_path/galette/* $final_path/ mv $final_path/galette/* $final_path/
ynh_secure_remove $final_path/tests ynh_secure_remove $final_path/tests
chmod 750 $final_path #chmod 750 $final_path
chmod -R o-rwx $final_path #chmod -R o-rwx $final_path
chown -R $app:www-data $final_path #chown -R $app:www-data $final_path
#================================================= #=================================================
# NGINX CONFIGURATION # 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" ynh_add_config --template="../conf/config.inc.php.dist" --destination="$final_path/config/config.inc.php"
chown $app $final_path/config #chown $app $final_path/config
chmod 775 $final_path/config #chmod 775 $final_path/config
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
@ -120,11 +120,25 @@ chmod 775 $final_path/config
# SECURE FILES AND DIRECTORIES # 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 for folder in attachments cache exports files imports logs photos templates_c tempimages
do 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" chown -R $app "$final_path/data/$folder"
chmod -R 775 "$final_path/data/$folder" chmod -R 775 "$final_path/data/$folder"
done #done
#================================================= #=================================================
# SETUP LOGROTATE # SETUP LOGROTATE