%PDF- %PDF-
| Direktori : /var/lib/dpkg/info/ |
| Current File : //var/lib/dpkg/info/geoclue-2.0.postinst |
#!/bin/sh
# postinst script for geoclue-2.0
#
# see: dh_installdeb(1)
set -e
case "$1" in
configure)
if ! getent group geoclue >/dev/null; then
addgroup --quiet --system geoclue
fi
if ! getent passwd geoclue >/dev/null; then
adduser --quiet --system --ingroup geoclue --home /var/lib/geoclue --no-create-home geoclue
fi
if ! dpkg-statoverride --list /var/lib/geoclue >/dev/null 2>&1; then
dpkg-statoverride --update --add geoclue geoclue 0755 /var/lib/geoclue
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# Automatically added by dh_apparmor/4.0.0-beta3-0ubuntu3
if [ "$1" = "configure" ]; then
APP_PROFILE="/etc/apparmor.d/usr.libexec.geoclue"
if [ -f "$APP_PROFILE" ]; then
# Add the local/ include
LOCAL_APP_PROFILE="/etc/apparmor.d/local/usr.libexec.geoclue"
test -e "$LOCAL_APP_PROFILE" || {
mkdir -p `dirname "$LOCAL_APP_PROFILE"`
install --mode 644 /dev/null "$LOCAL_APP_PROFILE"
}
# Reload the profile, including any abstraction updates
if aa-enabled --quiet 2>/dev/null; then
apparmor_parser -r -T -W "$APP_PROFILE" || true
fi
fi
fi
# End automatically added section
# Automatically added by dh_installdeb/13.14.1ubuntu5
dpkg-maintscript-helper rm_conffile /etc/dbus-1/system.d/org.freedesktop.GeoClue2.Agent.conf 2.7.0-3\~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/dbus-1/system.d/org.freedesktop.GeoClue2.conf 2.7.0-3\~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/apparmor.d/usr.libexec.geoclue -- "$@"
# End automatically added section
# Automatically added by dh_installsystemd/13.14.1ubuntu5
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
if [ -n "$2" ]; then
_dh_action=restart
else
_dh_action=start
fi
deb-systemd-invoke $_dh_action 'geoclue.service' >/dev/null || true
fi
fi
# End automatically added section
exit 0