1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gogs_ynh.git synced 2024-09-03 20:36:23 +02:00

Update install

This commit is contained in:
ericgaspar 2021-08-14 23:15:18 +02:00
parent 88d70db2df
commit 4b2f7ab0dc
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -91,6 +91,10 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir=$final_path --source_id="$architecture"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# CREAT DIRECTORIES
#=================================================
@ -169,10 +173,8 @@ ynh_add_nginx_config
# SECURE FILES AND DIRECTORIES
#=================================================
chown -R $app: "$final_path"
chown -R $app: "/home/$app"
chown -R $app: "/var/log/$app"
#chmod u=rwX,g=rX,o= "$final_path"
chmod u=rwX,g=rX,o= "/home/$app"
chmod u=rwX,g=rX,o= "/var/log/$app"