1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

fix nginx access

This commit is contained in:
Kay0u 2021-05-04 21:12:52 +02:00
parent 840050079e
commit 120d967a19
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
4 changed files with 10 additions and 1 deletions

View file

@ -6,7 +6,7 @@
"en": "A translation platform using Git and Python", "en": "A translation platform using Git and Python",
"fr": "Une plateforme de traduction utilisant Git et Python" "fr": "Une plateforme de traduction utilisant Git et Python"
}, },
"version": "4.6.1~ynh1", "version": "4.6.1~ynh2",
"url": "https://weblate.org", "url": "https://weblate.org",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"maintainer": { "maintainer": {

View file

@ -252,6 +252,9 @@ ynh_add_systemd_config --service="$app-celery" --template="celery-weblate.servic
# Set permissions to app files # Set permissions to app files
mkdir -p "$final_path/avatar-cache" mkdir -p "$final_path/avatar-cache"
chown -R "$app": "$final_path" chown -R "$app": "$final_path"
chown "$app:www-data" "$final_path"
chown -R "$app:www-data" "$final_path/data"
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"

View file

@ -72,6 +72,9 @@ ynh_system_user_create --username=$app --home_dir="$final_path" --use_shell
# Restore permissions on app files # Restore permissions on app files
mkdir -p "$final_path/avatar-cache" mkdir -p "$final_path/avatar-cache"
chown -R "$app": "$final_path" chown -R "$app": "$final_path"
chown "$app:www-data" "$final_path"
chown -R "$app:www-data" "$final_path/data"
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"

View file

@ -298,6 +298,9 @@ yunohost service add "$app-celery" --log "/var/log/$app/weblate-celery-w1.log"
# Set right permissions for curl installation # Set right permissions for curl installation
mkdir -p "$final_path/avatar-cache" mkdir -p "$final_path/avatar-cache"
chown -R "$app": "$final_path" chown -R "$app": "$final_path"
chown "$app:www-data" "$final_path"
chown -R "$app:www-data" "$final_path/data"
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"