diff --git a/scripts/remove b/scripts/remove index 7ca4c2f..961cbf9 100755 --- a/scripts/remove +++ b/scripts/remove @@ -98,7 +98,10 @@ ynh_script_progression --message="Removing dependencies..." # Remove metapackage and its dependencies ynh_remove_app_dependencies -ynh_remove_go +if [ "$node_type" == "client" ] +then + ynh_remove_go +fi #================================================= # REMOVE DATA DIR diff --git a/scripts/restore b/scripts/restore index 4317a7f..3c44878 100755 --- a/scripts/restore +++ b/scripts/restore @@ -119,6 +119,7 @@ then if [ ! ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then ynh_add_config --template="../conf/lxc-net" --destination="/etc/default/lxc-net" fi + ynh_secure_remove --file="/etc/lxc/default.conf" ynh_add_config --template="../conf/default.conf" --destination="/etc/lxc/default.conf" systemctl enable lxc-net --quiet ynh_systemd_action --service_name=lxc-net --action="restart" --line_match="Started LXC network bridge" --log_path="systemd"