]> WPIA git - gigi.git/blobdiff - debian/cacert-gigi-testing.postinst
Replace init scripts with systemd unit files
[gigi.git] / debian / cacert-gigi-testing.postinst
index 46fcf81ddc60118b4e647245a692597dee35bd22..e5654e3662e63969977a23026e9f18745a1e83d0 100644 (file)
@@ -20,6 +20,14 @@ set -e
 
 case "$1" in
     configure)
+        if [ -f /usr/share/debconf/confmodule ]; then
+            . /usr/share/debconf/confmodule
+            db_get cacert-gigi-testing/fetch-locales-command
+            $RET
+        else
+            gigi fetch-locales
+        fi
+        adduser --system gigi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
@@ -31,18 +39,10 @@ case "$1" in
     ;;
 esac
 
-if [ -f /usr/share/debconf/confmodule ]; then
-    . /usr/share/debconf/confmodule
-    db_get cacert-gigi-testing/fetch-locales-command
-    $RET
-else
-    gigi fetch-locales
-fi
-
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
+# The "hash DEBHELPER hash" special token is deliberately *not* included;
+# gigi cannot start out of the box,
+# and this package installs multiple services that cannot be used simultaneously,
+# so we really don't want dh_installdeb to add code by
+# dh_systemd_enable, dh_installinit and dh_systemd_start here.
 
 exit 0