make sure that the script runs as root
This commit is contained in:
parent
cfc7064964
commit
697f87eeb5
@ -1,6 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
if [[ "$(id -u)" -ne 0 ]]; then
|
||||||
|
>&2 echo "$0: please run this script as root"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
KICKSTART_BASE="Rocky"
|
KICKSTART_BASE="Rocky"
|
||||||
TODAY="$(TZ='UTC' date +%Y.%m.%d)"
|
TODAY="$(TZ='UTC' date +%Y.%m.%d)"
|
||||||
KICKSTART_FILE="${KICKSTART_BASE}.ks"
|
KICKSTART_FILE="${KICKSTART_BASE}.ks"
|
||||||
|
Loading…
Reference in New Issue
Block a user