From 8e095ffd6c47cd28537b3320f096ca0040460684 Mon Sep 17 00:00:00 2001 From: John Wiseman Date: Mon, 11 May 2020 16:51:27 -0700 Subject: [PATCH] Use /var/lib instead of /var/run. --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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