[med-svn] [shiny-server] 02/08: Remove user when purging

Andreas Tille tille at debian.org
Mon Mar 27 15:04:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository shiny-server.

commit 83c5741122c230535999bed28ca83ba563c2af92
Author: Andreas Tille <tille at debian.org>
Date:   Mon Mar 27 12:08:43 2017 +0200

    Remove user when purging
---
 debian/postrm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/postrm b/debian/postrm
index f0f840a..52e23cb 100755
--- a/debian/postrm
+++ b/debian/postrm
@@ -5,4 +5,9 @@ set -e
 # remove temporary sockets
 rm -rf /var/shiny-server/sockets
 
+if [ "$1" = "purge" ] ; then
+    deluser --remove-all-files --system shiny
+    delgroup --system shiny
+fi
+
 #DEBHELPER#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/shiny-server.git



More information about the debian-med-commit mailing list