summarylogtreecommitdiffstats
path: root/sentry.install
diff options
context:
space:
mode:
authorBenjamin A. Shelton2017-05-15 15:58:04 -0600
committerBenjamin A. Shelton2017-05-30 00:53:32 -0600
commit85c1aaeac746bbdc4cd461ecd11b9d4ee4786b2d (patch)
tree30dfeb0a52d5c7b7118abea6a6b8a1042f40f824 /sentry.install
parent55cc606550467b1d78bb66bdd61dcdd1249374da (diff)
downloadaur-85c1aaeac746bbdc4cd461ecd11b9d4ee4786b2d.tar.gz
Implemented systemd-sysusers.
Call systemd-sysusers directly instead of restarting service. Added missing sentry-sysusers.
Diffstat (limited to 'sentry.install')
-rw-r--r--sentry.install13
1 files changed, 11 insertions, 2 deletions
diff --git a/sentry.install b/sentry.install
index 1c766c4d1e5a..efb074411277 100644
--- a/sentry.install
+++ b/sentry.install
@@ -1,8 +1,8 @@
post_install(){
- /usr/sbin/useradd -s /bin/false -d /opt/sentry -r sentry
-
/usr/bin/mkdir -p /opt/sentry/celery
+ # Restart systemd-sysusers so it picks up our user account.
+ /usr/bin/systemd-sysusers /usr/lib/sysusers.d/sentry.conf
# Generate a new configuration.
if [ ! -e "/etc/sentry/sentry.conf.py" ] || [ ! -e "/etc/sentry/config.yml" ] ; then
@@ -176,3 +176,12 @@ installed.
EOF
}
+
+post_remove(){
+
+cat << EOF
+Sentry has been removed. If this is a permanent decision, you'll need to
+remove Sentry's system account manually (userdel sentry).
+EOF
+
+}