diff options
Diffstat (limited to 'sentry.install')
-rw-r--r-- | sentry.install | 13 |
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 + +} |