diff --git a/install.sh b/install.sh index 7cf9f82..3811776 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ set -e install_path=/usr/local/share/advisorycircular config_path=/etc/advisorycircular -run_path=/var/run/advisorycircular +run_path=/var/lib/advisorycircular user=advisorycircular # Create install, config, and run directories if they doesn't exist. @@ -11,7 +11,7 @@ sudo mkdir -p "$config_path" sudo mkdir -p "$run_path" # Create advisory-circular user if it doesn't exist. -if ! id -u ${user} 2>/dev/null +if ! id -u ${user} >/dev/null 2>&1 then sudo adduser --system --home ${install_path} --no-create-home --quiet ${user} fi