X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=debian%2Fcacert-gigi.postinst;h=519ecc489894aba810fb642782df6f78e6e4e1de;hp=d2970c11510f6f2f9b89b48de5bfa368c3539dea;hb=db24c4e8c06c5562283539c0a4b4cce086d70600;hpb=258fed97058e563788f5b598097daa880921e500 diff --git a/debian/cacert-gigi.postinst b/debian/cacert-gigi.postinst index d2970c11..519ecc48 100644 --- a/debian/cacert-gigi.postinst +++ b/debian/cacert-gigi.postinst @@ -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/fetch-locales-command + $RET + else + gigi fetch-locales + fi + adduser --system gigi ;; abort-upgrade|abort-remove|abort-deconfigure) @@ -31,17 +39,10 @@ case "$1" in ;; esac -if [ -f /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule - db_get cacert-gigi/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