portzap/bin/setup-portzap
0x1eef 382581136e
Some checks are pending
portzap / shellcheck (push) Waiting to run
Add setup/setup-user
2024-07-26 11:34:07 -03:00

21 lines
339 B
Bash
Executable file

#!/bin/sh
set -e
##
# variables
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/..)}
libexec="${localbase}"/libexec/portzap
##
# functions
. "${libexec}"/functions/print.sh
##
# main
if [ "$(id -u)" = "0" ]; then
"${libexec}"/setup/setup-user
"${libexec}"/setup/setup-doas
else
printerr "you must be root"
exit 1
fi