Use /var/lib instead of /var/run.
This commit is contained in:
parent
919cbd7faa
commit
8e095ffd6c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user