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:
parent
1f860f5147
commit
c0b069384a
2 changed files with 16 additions and 1 deletions
|
@ -14,4 +14,4 @@
|
||||||
<LaunchBrowser>False</LaunchBrowser>
|
<LaunchBrowser>False</LaunchBrowser>
|
||||||
<SslCertPath></SslCertPath>
|
<SslCertPath></SslCertPath>
|
||||||
<SslCertPassword></SslCertPassword>
|
<SslCertPassword></SslCertPassword>
|
||||||
</Config>
|
</Config>
|
||||||
|
|
|
@ -18,6 +18,21 @@ ynh_restore_file --origin_path="$install_dir"
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R "$app:" "$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
|
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue