moderization
This commit is contained in:
1 parent
ccd6c78397
commit
58c1fe2fff
24 files changed
+204
-103
No files matched your search
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if ! id "camporganizer" >/dev/null 2>&1; then
|
||||
useradd --system --user-group --no-create-home \
|
||||
--shell /bin/false camporganizer
|
||||
fi
|
||||
|
||||
touch /etc/camporganizer.properties
|
||||
chgrp camporganizer /etc/camporganizer.properties
|
||||
chmod 640 /etc/camporganizer.properties
|
||||
|
||||
mkdir -p /opt/camporganizer
|
||||
chown -R camporganizer:camporganizer /opt/camporganizer
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl enable camporganizer.service
|
||||
|
||||
if systemctl is-active --quiet camporganizer.service; then
|
||||
systemctl restart camporganizer.service
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user