Merge branch 'patch-1' into 'master'

add requirement for root user

See merge request jjwiseman/advisory-circular!2
This commit is contained in:
John Wiseman 2020-09-13 00:37:41 +00:00
commit 3264a87c02

View File

@ -5,6 +5,8 @@ config_dir=/etc/advisorycircular
run_dir=/var/lib/advisorycircular
user=advisorycircular
if test `whoami` != root; then echo you must run this as root ; exit 1 ; fi
# Create install, config, and run directories if they doesn't exist.
echo Creating directories
mkdir -p "$install_dir"