1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotosocial_ynh.git synced 2024-09-03 19:16:06 +02:00

fix www-data

This commit is contained in:
OniriCorpe 2022-03-27 18:14:04 +02:00
parent 0e8dc7116a
commit 37c70c78ac

View file

@ -152,13 +152,13 @@ ynh_setup_source --dest_dir="$final_path" --source_id=$architecture
# FIXME: this should be managed by the core in the future
# Here, as a packager, you may have to tweak the ownerhsip/permissions
# such that the appropriate users (e.g. maybe www_data) can access
# such that the appropriate users (e.g. maybe www-data) can access
# files in some cases.
# But FOR THE LOVE OF GOD, do not allow r/x for "others" on the entire folder _
# this will be treated as a security issue.
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www_data "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# NGINX CONFIGURATION
@ -186,7 +186,7 @@ mkdir -p $datadir
# this will be treated as a security issue.
chmod 750 "$datadir"
chmod -R o-rwx "$datadir"
chown -R $app:www_data "$datadir"
chown -R $app:www-data "$datadir"
#=================================================
# ADD A CONFIGURATION