diff --git a/scripts/restore b/scripts/restore index 8ac958f..e84ca84 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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