1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lxd_ynh.git synced 2024-09-03 19:45:53 +02:00

Merge pull request #17 from YunoHost-Apps/testing

4.19
This commit is contained in:
Kayou 2021-10-13 13:34:28 +02:00 committed by GitHub
commit 02f8d5b567
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 7 deletions

View file

@ -9,7 +9,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
## Overview ## Overview
LXD is a next generation system container manager. It offers a user experience similar to virtual machines but using Linux containers instead. 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 ## Demo

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/lxc/lxd/releases/download/lxd-4.18/lxd-4.18.tar.gz SOURCE_URL=https://github.com/lxc/lxd/releases/download/lxd-4.19/lxd-4.19.tar.gz
SOURCE_SUM=b60e09e4d349eebfedff8f1ca493533fb7353aceb43cbbcd7f4e340715a5f3a5 SOURCE_SUM=6e4cf6cb1549e1b56802d64ad24d812914e0c0102bfcf146bb18a8dcd1fbab57
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -5,7 +5,7 @@
"description": { "description": {
"en": "Offers a user experience similar to virtual machines but using Linux containers instead." "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", "url": "https://example.com",
"license": "Apache-2.0", "license": "Apache-2.0",
"maintainer": { "maintainer": {
@ -13,7 +13,7 @@
"email": "pierre@kayou.io" "email": "pierre@kayou.io"
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.1.3" "yunohost": ">= 4.2.8"
}, },
"multi_instance": false, "multi_instance": false,
"services": [ "services": [

View file

@ -91,10 +91,15 @@ ynh_script_progression --message="Removing the dedicated system user..."
ynh_system_user_delete --username=$app 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 # END OF SCRIPT

View file

@ -48,6 +48,7 @@ ynh_abort_if_errors
#================================================= #=================================================
ynh_script_progression --message="Stopping a systemd service..." 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" ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log"
#================================================= #=================================================