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:
parent
d7e2329baf
commit
11c93f0460
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue