mirror of
https://github.com/YunoHost-Apps/radarr_ynh.git
synced 2024-09-03 20:16:13 +02:00
Update config.xml in upgrade and fix its permissions
This commit is contained in:
parent
71cc77be4d
commit
f6abd27c8e
3 changed files with 9 additions and 0 deletions
|
@ -134,6 +134,9 @@ chmod 750 "$data_path"
|
|||
chmod -R o-rwx "$data_path"
|
||||
chown -R $app: "$data_path"
|
||||
|
||||
chmod 400 "$data_path/config.xml"
|
||||
chown $app:$app "$data_path/config.xml"
|
||||
|
||||
#=================================================
|
||||
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||
#=================================================
|
||||
|
|
|
@ -83,6 +83,9 @@ chmod 750 "$data_path"
|
|||
chmod -R o-rwx "$data_path"
|
||||
chown -R $app: "$data_path"
|
||||
|
||||
chmod 400 "$data_path/config.xml"
|
||||
chown $app:$app "$data_path/config.xml"
|
||||
|
||||
#=================================================
|
||||
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||
#=================================================
|
||||
|
|
|
@ -139,6 +139,9 @@ ynh_script_progression --message="Updating the configuration file.." --weight=1
|
|||
|
||||
ynh_add_config --template="../conf/config.xml" --destination="$data_path/config.xml"
|
||||
|
||||
chmod 400 "$data_path/config.xml"
|
||||
chown $app:$app "$data_path/config.xml"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue