Update node-red-install.sh

This commit is contained in:
tteckster 2022-02-22 19:28:46 -05:00 committed by GitHub
parent 97dd52a47c
commit 5ea42ce7cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,20 +31,7 @@ function msg() {
local TEXT="$1"
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'
RD=`echo "\033[01;31m"`
BL=`echo "\033[36m"`