mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
Fix restore
This commit is contained in:
parent
cf01bf4b0f
commit
f68260289f
1 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
|||
ynh_script_progression --message="Recreating the dedicated system user..."
|
||||
|
||||
# Create the dedicated user (if not existing)
|
||||
ynh_system_user_create --username=$app --home_dir=$final_path
|
||||
ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE APP MAIN DIR
|
||||
|
@ -114,11 +114,11 @@ ynh_restore_file --origin_path="/etc/systemd/system/${app}_web.service"
|
|||
ynh_restore_file --origin_path="/etc/systemd/system/${app}_sidekiq.service"
|
||||
|
||||
# tmp files
|
||||
install -T --mode=0644 -v ../conf/diaspora.tmpfiles.d /etc/tmpfiles.d/${app}.conf
|
||||
install -T --mode=0644 -v ../settings/conf/diaspora.tmpfiles.d /etc/tmpfiles.d/${app}.conf
|
||||
ynh_replace_string --match_string=__APP__ --replace_string=$app --target_file=/etc/tmpfiles.d/${app}.conf
|
||||
|
||||
# target unit
|
||||
install -T --mode=0644 -v ../conf/diaspora.target /etc/systemd/system/${app}.target
|
||||
install -T --mode=0644 -v ../settings/conf/diaspora.target /etc/systemd/system/${app}.target
|
||||
ynh_replace_string --match_string=__APP__ --replace_string=$app --target_file=/etc/systemd/system/${app}.target
|
||||
|
||||
# reload, create, enable and start stuff
|
||||
|
|
Loading…
Reference in a new issue