Browse Source

first install.sh

main
pvincent 1 week ago
parent
commit
369b349ce3
  1. 18
      install.sh

18
install.sh

@ -5,5 +5,23 @@
# FUNCTIONS
function halt_on_error {
>&2 echo "ERROR: $1"
exit ${2:-1}
}
function assert_root {
[ "$(id -u)" -ne 0 ] && halt_on_error 'root privilege required!'
}
function assert_proxmox {
grep -q ^ID=debian /etc/os-release || halt_on_error 'distro debian required!' 2
command -v pct >/dev/null || halt_on_error 'command `pct` not found!' 3
}
# MAIN
set Eue
assert_root
assert_proxmox
echo OK
Loading…
Cancel
Save