From defa639640f4a89ba2c97fc662055bbb0f05a145 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 25 Dec 2020 16:09:40 +0100 Subject: [PATCH] Fixing previous commits following tests --- lib/lxc.sh | 1 - package_check.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/lxc.sh b/lib/lxc.sh index 67b2119..18152cb 100644 --- a/lib/lxc.sh +++ b/lib/lxc.sh @@ -5,7 +5,6 @@ #================================================= LXC_CREATE () { - lxc image list $LXC_BASE | grep -q -w $LXC_BASE || log_critical "The base image $LXC_BASE doesn't exist yet. Consider using the build_base_lxc.sh to create it first" lxc launch yunohost:$LXC_BASE $LXC_NAME || clean_exit 1 lxc config set "$LXC_NAME" security.nesting true _LXC_START_AND_WAIT $LXC_NAME diff --git a/package_check.sh b/package_check.sh index 6508ecc..5c97b87 100755 --- a/package_check.sh +++ b/package_check.sh @@ -193,7 +193,7 @@ echo "start:$(date +%s):$$" > "$lock_file" assert_we_are_connected_to_the_internets assert_we_have_all_dependencies -if [[ $rebuild == 0 ]] +if [[ $rebuild == 1 ]] then rebuild_base_lxc 2>&1 | tee -a "./build_base_lxc.log" clean_exit 0