mirror of
https://github.com/ej52/proxmox-scripts.git
synced 2025-07-23 16:08:22 +02:00
add delay after first start
This commit is contained in:
parent
d7e0bab284
commit
f077670952
@ -17,9 +17,6 @@ function error {
|
||||
fi
|
||||
|
||||
if [ ! -z ${_ctid-} ]; then
|
||||
if [ ! -z ${_mount+x} ]; then
|
||||
pct unmount $_ctid &>/dev/null
|
||||
fi
|
||||
if $(pct status $_ctid &>/dev/null); then
|
||||
if [ "$(pct status $_ctid 2>/dev/null | awk '{print $2}')" == "running" ]; then
|
||||
pct stop $_ctid &>/dev/null
|
||||
@ -175,7 +172,6 @@ _pct_options=(
|
||||
-rootfs $_rootfs,size=$_disk_size
|
||||
-storage $_storage
|
||||
-swap $_swap
|
||||
-unprivileged 1
|
||||
-tags npm
|
||||
)
|
||||
pct create $_ctid "local:vztmpl/$_template" ${_pct_options[@]} &>/dev/null \
|
||||
|
@ -193,6 +193,7 @@ EOF
|
||||
chmod a+x /etc/init.d/npm
|
||||
rc-update add npm boot &>/dev/null
|
||||
rc-service npm start &>/dev/null
|
||||
sleep 5
|
||||
|
||||
# Cleanup
|
||||
info "Cleaning up..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user