mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
Apply suggestions from code review
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
a012960021
commit
bff7e1ba07
1 changed files with 2 additions and 1 deletions
3
ynh-dev
3
ynh-dev
|
@ -141,7 +141,8 @@ function start_ynhdev()
|
||||||
if ! sudo lxc image info $BOX-base &>/dev/null
|
if ! sudo lxc image info $BOX-base &>/dev/null
|
||||||
then
|
then
|
||||||
LXC_BASE="ynh-dev-$DIST-amd64-$YNH_BRANCH-base"
|
LXC_BASE="ynh-dev-$DIST-amd64-$YNH_BRANCH-base"
|
||||||
sudo lxc launch yunohost:$LXC_BASE $BOX -c security.nesting=true -c security.privileged=true || critical "We can't find the image $LXC_BASE in the Yunohost remote. You should first build the base YunoHost LXC using ./ynh-dev rebuild"
|
sudo lxc launch yunohost:$LXC_BASE $BOX -c security.nesting=true -c security.privileged=true \
|
||||||
|
|| critical "Failed to launch the container ?"
|
||||||
else
|
else
|
||||||
sudo lxc launch $BOX-base $BOX -c security.nesting=true -c security.privileged=true
|
sudo lxc launch $BOX-base $BOX -c security.nesting=true -c security.privileged=true
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue