mirror of
https://github.com/YunoHost-Apps/lxd_ynh.git
synced 2024-09-03 19:45:53 +02:00
Restore files before restoring system config
This commit is contained in:
parent
b90dd0295e
commit
7c14999e17
1 changed files with 19 additions and 19 deletions
|
@ -10,25 +10,6 @@
|
||||||
source ../settings/scripts/_common.sh
|
source ../settings/scripts/_common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# RESTORE SYSTEM CONFIGURATIONS
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
|
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.socket"
|
|
||||||
systemctl enable "$app.service" --quiet
|
|
||||||
|
|
||||||
yunohost service add "$app" --log="/var/log/$app/$app.log"
|
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/dnsmasq.d/lxd"
|
|
||||||
systemctl restart dnsmasq
|
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/ld.so.conf.d/$app.conf"
|
|
||||||
ldconfig
|
|
||||||
|
|
||||||
_ynh_set_subuid_subgid
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE VARIOUS FILES
|
# RESTORE VARIOUS FILES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -48,6 +29,25 @@ ynh_restore_file --origin_path="/usr/local/bin/lxd-migrate"
|
||||||
ynh_restore_file --origin_path="/usr/local/bin/lxd-user"
|
ynh_restore_file --origin_path="/usr/local/bin/lxd-user"
|
||||||
ynh_restore_file --origin_path="/etc/bash_completion.d/lxd-client"
|
ynh_restore_file --origin_path="/etc/bash_completion.d/lxd-client"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RESTORE SYSTEM CONFIGURATIONS
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.socket"
|
||||||
|
systemctl enable "$app.service" --quiet
|
||||||
|
|
||||||
|
yunohost service add "$app" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
|
ynh_restore_file --origin_path="/etc/dnsmasq.d/lxd"
|
||||||
|
systemctl restart dnsmasq
|
||||||
|
|
||||||
|
ynh_restore_file --origin_path="/etc/ld.so.conf.d/$app.conf"
|
||||||
|
ldconfig
|
||||||
|
|
||||||
|
_ynh_set_subuid_subgid
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue