fix scripts

This commit is contained in:
2024-02-13 01:36:11 +01:00
parent 2e62c1b33b
commit 4b272c2929
3 changed files with 19 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
#!/bin/bash
CTHOSTNAME=$1
CTPASS=$2
USER=$3
echo Creating $CTHOSTNAME ...
@@ -17,6 +18,11 @@ if [[ -z "$CTPASS" ]]; then
exit 1
fi
if [[ -z "$USER" ]]; then
echo "USER not set"
exit 1
fi
if [[ -z "$LASTID" ]]; then
LASTID=99
fi