1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/prowlarr_ynh.git synced 2024-09-03 20:16:07 +02:00

Fix restore: restore / fix config.xml

This commit is contained in:
Salamandar 2024-03-13 01:21:48 +01:00
parent 1f860f5147
commit c0b069384a
2 changed files with 16 additions and 1 deletions

View file

@ -14,4 +14,4 @@
<LaunchBrowser>False</LaunchBrowser>
<SslCertPath></SslCertPath>
<SslCertPassword></SslCertPassword>
</Config>
</Config>

View file

@ -18,6 +18,21 @@ ynh_restore_file --origin_path="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R "$app:" "$install_dir"
#=================================================
# RESTORE THE DATA DIRECTORY
#=================================================
ynh_script_progression --message="Restoring the data directory..." --weight=1
ynh_restore_file --origin_path="$data_dir" --not_mandatory
chown -R "$app:www-data" "$data_dir"
if [ ! -f "$data_dir/config.xml" ]; then
ynh_add_config --template="config.xml" --destination="$data_dir/config.xml"
chmod 400 "$data_dir/config.xml"
chown "$app:$app" "$data_dir/config.xml"
fi
#=================================================
# YUNOHOST MULTIMEDIA INTEGRATION
#=================================================