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:
parent
7a39422640
commit
c8f2ad32df
1 changed files with 20 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue