mirror of https://github.com/tteck/Proxmox.git
Update create_lxc.sh
This commit is contained in:
parent
6bd2757ee0
commit
df2b04daaf
|
@ -189,8 +189,8 @@ PCT_OPTIONS=(${PCT_OPTIONS[@]:-${DEFAULT_PCT_OPTIONS[@]}})
|
|||
# Create container
|
||||
msg_info "Creating LXC Container"
|
||||
if [ "$arm64ct" = "yes" ]; then
|
||||
pct create $CTID ctgrabtmp:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null || exit "A problem occured while trying to create container."
|
||||
pvesm remove ctgrabtmp
|
||||
pct create $CTID ctgrabtmp:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null 2>&1 || exit "A problem occured while trying to create container."
|
||||
pvesm remove ctgrabtmp>/dev/null 2>&1
|
||||
else
|
||||
pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null || exit "A problem occured while trying to create container."
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue