mirror of https://github.com/tteck/Proxmox.git
Update node-red-install.sh
This commit is contained in:
parent
97dd52a47c
commit
5ea42ce7cc
|
@ -31,20 +31,7 @@ function msg() {
|
||||||
local TEXT="$1"
|
local TEXT="$1"
|
||||||
echo -e "$TEXT"
|
echo -e "$TEXT"
|
||||||
}
|
}
|
||||||
function cleanup_ctid() {
|
|
||||||
if $(pct status $CTID &>/dev/null); then
|
|
||||||
if [ "$(pct status $CTID | awk '{print $2}')" == "running" ]; then
|
|
||||||
pct stop $CTID
|
|
||||||
fi
|
|
||||||
pct destroy $CTID
|
|
||||||
elif [ "$(pvesm list $STORAGE --vmid $CTID)" != "" ]; then
|
|
||||||
pvesm free $ROOTFS
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
function cleanup() {
|
|
||||||
popd >/dev/null
|
|
||||||
rm -rf $TEMP_DIR
|
|
||||||
}
|
|
||||||
CROSS='\033[1;31m\xE2\x9D\x8C\033[0m'
|
CROSS='\033[1;31m\xE2\x9D\x8C\033[0m'
|
||||||
RD=`echo "\033[01;31m"`
|
RD=`echo "\033[01;31m"`
|
||||||
BL=`echo "\033[36m"`
|
BL=`echo "\033[36m"`
|
||||||
|
|
Loading…
Reference in New Issue