summarylogtreecommitdiffstats
path: root/rslsync.install
diff options
context:
space:
mode:
authorDonald Webster2019-01-09 19:30:38 -0800
committerDonald Webster2019-01-09 19:30:38 -0800
commit7346c912eb264742ae0fff6ffa31fb1ce921e96a (patch)
tree340d2f973f1071f4ee28a8fc381b186757b49c13 /rslsync.install
parent1a7b021235f583b3410fbb11970e6ad07648c3e8 (diff)
downloadaur-7346c912eb264742ae0fff6ffa31fb1ce921e96a.tar.gz
Switch to sysusers for user:group, switch to tmpfiles for file/folder ownership and permissions.
Diffstat (limited to 'rslsync.install')
-rw-r--r--rslsync.install19
1 files changed, 0 insertions, 19 deletions
diff --git a/rslsync.install b/rslsync.install
index f5b863a1b1eb..223ea6af4809 100644
--- a/rslsync.install
+++ b/rslsync.install
@@ -1,27 +1,9 @@
post_install() {
-
- # add rslsync user and group if doesn't exist
- if [ "$(grep rslsync /etc/passwd)" == "" ]; then
- useradd -r -s /bin/sh -d /var/lib/rslsync rslsync
- fi
- # create rslsync dir
- mkdir -p /var/lib/rslsync && chown -R rslsync:rslsync /var/lib/rslsync
-
post_upgrade
}
post_upgrade() {
-
- # following will be moved to post_install eventually
-
- # create tmpdirs
- systemd-tmpfiles --create rslsync.conf
- # adjust owner and permissions for config file
- chown rslsync:rslsync /etc/rslsync.conf
- chmod 600 /etc/rslsync.conf
-
cat << EOF
-
WebGUI can be accessed via following URL: http://localhost:8888
* Running rslsync system instance (using dedicated rslsync:rslsync account)
@@ -69,6 +51,5 @@ EOF
}
post_remove() {
- userdel rslsync
echo -e "Please remove /var/lib/rslsync folder manually"
}