]> err.no Git - sash/commitdiff
Add debconf warning about sashroot user instead of trying to remove it, since userdel...
authorTollef Fog Heen <tfheen@err.no>
Sun, 16 Jul 2017 17:16:04 +0000 (19:16 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sun, 16 Jul 2017 17:16:04 +0000 (19:16 +0200)
debian/changelog
debian/control
debian/po/POTFILES.in [new file with mode: 0644]
debian/po/templates.pot [new file with mode: 0644]
debian/prerm
debian/templates [new file with mode: 0644]

index f7c7c9c3a834a9fada976cc4c64fa3d9a2410523..10337441c463232242826dd59094c0703411e6b7 100644 (file)
@@ -1,3 +1,10 @@
+sash (3.8-4) unstable; urgency=medium
+
+  * Add debconf warning about sashroot user instead of trying to remove
+    it, since userdel is unable to properly delete it.  Closes: #783031
+
+ -- Tollef Fog Heen <tfheen@debian.org>  Sun, 16 Jul 2017 19:13:30 +0200
+
 sash (3.8-3) unstable; urgency=medium
 
   * Drop support for adosfs, mfs on FreeBSD.
index 302b6a3f2103a7355e85d12a6f3b0f61cfb4a631..f471bf29c35879dc76b70c44a1f62dde7f43bc75 100644 (file)
@@ -6,7 +6,7 @@ Standards-Version: 3.9.4
 Build-Depends: zlib1g-dev (>= 1:1.2.2-7), debhelper (>= 9),
  e2fslibs-dev [!kfreebsd-amd64 !kfreebsd-i386],
  kfreebsd-kernel-headers [kfreebsd-amd64 kfreebsd-i386],
- dctrl-tools
+ dctrl-tools, po-debconf
 
 Package: sash
 Architecture: any
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644 (file)
index 0000000..cef83a3
--- /dev/null
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644 (file)
index 0000000..f91f910
--- /dev/null
@@ -0,0 +1,40 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the sash package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: sash\n"
+"Report-Msgid-Bugs-To: sash@packages.debian.org\n"
+"POT-Creation-Date: 2017-07-16 19:14+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "sashroot user detected"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid ""
+"Previous versions of sash offered to create a root user with shell set to /"
+"bin/sash.  This system has such a user."
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid ""
+"This can unfortunately not be automatically removed together with the "
+"package, so you need to manually delete the sashroot user."
+msgstr ""
index c9abdee3188b426c7debf07f6feb4ec43fd69597..861983e71c7e5f1992d8914892cda091b6d95ae2 100644 (file)
@@ -4,10 +4,12 @@
 # at least continue to work after sash is removed...
 
 set -e
+. /usr/share/debconf/confmodule
 
 if [ "$1" = remove ]; then
-    if [ "$(getent passwd | grep  ^sashroot:)" != "" ]; then
-        userdel sashroot
+    if getent passwd | grep -qs ^sashroot: ; then
+        db_input high sash/sashroot-user-detected || true
+        db_go || true
     fi
     for sashacct in $(getent passwd | \
         awk -F: '{if ($7 == "/bin/sash") {print $1}}'); do
diff --git a/debian/templates b/debian/templates
new file mode 100644 (file)
index 0000000..15560ae
--- /dev/null
@@ -0,0 +1,8 @@
+Template: sash/sashroot-user-detected
+Type: error
+_Description: sashroot user detected
+ Previous versions of sash offered to create a root user with shell
+ set to /bin/sash.  This system has such a user.
+ .
+ This can unfortunately not be automatically removed together with the
+ package, so you need to manually delete the sashroot user.