Update lxc.sh

This commit is contained in:
ericgaspar 2022-08-13 12:26:44 +02:00
parent d218bbf61d
commit 9eb0643d65

View file

@ -6,7 +6,7 @@
LXC_CREATE () { LXC_CREATE () {
log_info "Launching new LXC $LXC_NAME ..." log_info "Launching new LXC $LXC_NAME ..."
# Check if we can launch container from yunohost remote image # Check if we can launch container from YunoHost remote image
if lxc remote list | grep -q "yunohost" && lxc image list yunohost:$LXC_BASE | grep -q -w $LXC_BASE; then if lxc remote list | grep -q "yunohost" && lxc image list yunohost:$LXC_BASE | grep -q -w $LXC_BASE; then
lxc launch yunohost:$LXC_BASE $LXC_NAME \ lxc launch yunohost:$LXC_BASE $LXC_NAME \
-c security.nesting=true \ -c security.nesting=true \