1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/transmission_ynh.git synced 2024-09-04 01:46:12 +02:00

Fix directory permissions for web download ui (#108)

Co-authored-by: Félix Piédallu <felix.piedallu@non.se.com>
This commit is contained in:
Salamandar 2023-12-06 13:24:50 +01:00 committed by GitHub
parent d7e2329baf
commit 11c93f0460
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -23,10 +23,10 @@ ynh_app_setting_set --app=$app --key=rpcpassword --value="$rpcpassword"
#=================================================
ynh_script_progression --message="Set data directory permissions..."
chmod -R 764 $data_dir
chmod -R 775 $data_dir
chmod -R 775 $data_dir/watched
chown -R debian-transmission:www-data "$data_dir"
chown -R debian-transmission: $data_dir/{progress,watched}
chown -R debian-transmission: "$data_dir"/{progress,watched}
#=================================================
# NGINX CONFIGURATION

View file

@ -17,7 +17,7 @@ ynh_script_progression --message="Restoring the data directory..."
ynh_restore_file --origin_path="$data_dir" --not_mandatory
chmod -R 764 $data_dir
chmod -R 775 $data_dir
chmod -R 775 $data_dir/watched
chown -R debian-transmission:www-data "$data_dir"
chown -R debian-transmission: $data_dir/{progress,watched}

View file

@ -97,7 +97,7 @@ ynh_replace_string "<div id=\"toolbar-inspector\" title=\"Toggle Inspector\"></d
#=================================================
ynh_script_progression --message="Set data directory permissions..." --weight=1
chmod -R 764 $data_dir
chmod -R 775 $data_dir
chmod -R 775 $data_dir/watched
chown -R debian-transmission:www-data "$data_dir"
chown -R debian-transmission: $data_dir/{progress,watched}