1
0
Fork 0
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:
tituspijean 2021-12-18 19:16:38 +01:00
parent 3608473005
commit 83058bccf7
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -28,6 +28,7 @@ ynh_script_progression --message="Loading installation settings..." --time --wei
# Needed for helper "ynh_add_nginx_config"
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)
api_key=$(ynh_app_setting_get --app=$app --key=api_key)
@ -112,11 +113,11 @@ fi
# 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 o-rwx "$final_path/.data/config.xml"
chown $app "$final_path/.data/config.xml"
chmod 750 "$data_path/config.xml"
chmod o-rwx "$data_path/config.xml"
chown $app "$data_path/config.xml"
#=================================================
# GENERIC FINALISATION