mirror of
https://github.com/YunoHost-Apps/prowlarr_ynh.git
synced 2024-09-03 20:16:07 +02:00
Data path is also used in change_url
This commit is contained in:
parent
3608473005
commit
83058bccf7
1 changed files with 5 additions and 4 deletions
|
@ -28,6 +28,7 @@ ynh_script_progression --message="Loading installation settings..." --time --wei
|
||||||
|
|
||||||
# Needed for helper "ynh_add_nginx_config"
|
# Needed for helper "ynh_add_nginx_config"
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
|
data_path=$(ynh_app_setting_get --app=$app --key=data_path)
|
||||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||||
api_key=$(ynh_app_setting_get --app=$app --key=api_key)
|
api_key=$(ynh_app_setting_get --app=$app --key=api_key)
|
||||||
|
|
||||||
|
@ -112,11 +113,11 @@ fi
|
||||||
# UPDATE CONFIGURATION FILE
|
# UPDATE CONFIGURATION FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_exec_warn_less 'ynh_add_config --template="../conf/config.xml" --destination="$final_path/.data/config.xml"'
|
ynh_exec_warn_less 'ynh_add_config --template="../conf/config.xml" --destination="$data_path/config.xml"'
|
||||||
|
|
||||||
chmod 750 "$final_path/.data/config.xml"
|
chmod 750 "$data_path/config.xml"
|
||||||
chmod o-rwx "$final_path/.data/config.xml"
|
chmod o-rwx "$data_path/config.xml"
|
||||||
chown $app "$final_path/.data/config.xml"
|
chown $app "$data_path/config.xml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue