mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
use local container if it doesn't exist in the remote
This commit is contained in:
parent
4a97060018
commit
e8de4eeb53
1 changed files with 6 additions and 1 deletions
|
@ -5,7 +5,12 @@
|
|||
#=================================================
|
||||
|
||||
LXC_CREATE () {
|
||||
lxc launch yunohost:$LXC_BASE $LXC_NAME \
|
||||
local remote=""
|
||||
if lxc image list yunohost: | grep -qw $LXC_BASE
|
||||
then
|
||||
remote="yunohost:"
|
||||
fi
|
||||
lxc launch ${remote}$LXC_BASE $LXC_NAME \
|
||||
-c security.nesting=true \
|
||||
-c security.privileged=true \
|
||||
-c limits.memory=80% \
|
||||
|
|
Loading…
Add table
Reference in a new issue