diff --git a/README.md b/README.md index b081fef..d19ae3e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in ## Overview LXD is a next generation system container manager. It offers a user experience similar to virtual machines but using Linux containers instead. -**Shipped version:** 4.18 +**Shipped version:** 4.19 ## Demo diff --git a/conf/lxd.src b/conf/lxd.src index ccfaf43..b4fbc71 100644 --- a/conf/lxd.src +++ b/conf/lxd.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/lxc/lxd/releases/download/lxd-4.18/lxd-4.18.tar.gz -SOURCE_SUM=b60e09e4d349eebfedff8f1ca493533fb7353aceb43cbbcd7f4e340715a5f3a5 +SOURCE_URL=https://github.com/lxc/lxd/releases/download/lxd-4.19/lxd-4.19.tar.gz +SOURCE_SUM=6e4cf6cb1549e1b56802d64ad24d812914e0c0102bfcf146bb18a8dcd1fbab57 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index bb78185..cdf5abc 100644 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "description": { "en": "Offers a user experience similar to virtual machines but using Linux containers instead." }, - "version": "4.18~ynh1", + "version": "4.19~ynh1", "url": "https://example.com", "license": "Apache-2.0", "maintainer": { @@ -13,7 +13,7 @@ "email": "pierre@kayou.io" }, "requirements": { - "yunohost": ">= 4.1.3" + "yunohost": ">= 4.2.8" }, "multi_instance": false, "services": [ diff --git a/scripts/remove b/scripts/remove index 8a814d4..e3b5630 100755 --- a/scripts/remove +++ b/scripts/remove @@ -91,10 +91,15 @@ ynh_script_progression --message="Removing the dedicated system user..." ynh_system_user_delete --username=$app #================================================= -# INFO TO REMOVE CONTAINERS +# REMOVE CONTAINERS #================================================= -ynh_print_warn --message="If you really want to delete all containers and files related to lxd please run \"rm /var/lib/lxd -rf\"" +# Remove the data directory if --purge option is used +if [ "${YNH_APP_PURGE:-0}" -eq 1 ] +then + ynh_script_progression --message="Removing containers..." + ynh_secure_remove --file="/var/lib/lxd" +fi #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index f3b13de..a2d5df6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -48,6 +48,7 @@ ynh_abort_if_errors #================================================= ynh_script_progression --message="Stopping a systemd service..." +ynh_systemd_action --service_name="$app.socket" --action="stop" ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" #=================================================