update-notifier: remove ubuntu-advantage-notifier daemon services.
This commit is contained in:
parent
6b15a032dd
commit
352d2703f0
1 changed files with 27 additions and 8 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012-2023 Ruben Rodriguez <ruben@trisquel.info>
|
# Copyright (C) 2012-2023 Ruben Rodriguez <ruben@trisquel.info>
|
||||||
|
# Copyright (C) 2023 Luis Guzmán <ark@switnet.org>
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
|
@ -17,7 +18,7 @@
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION=8
|
VERSION=9
|
||||||
COMPONENT=main
|
COMPONENT=main
|
||||||
|
|
||||||
. ./config
|
. ./config
|
||||||
|
|
@ -106,6 +107,24 @@ cat << EOF | patch -p1
|
||||||
available.
|
available.
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Removal daemons from ubuntu-advantage
|
||||||
|
truncate -s 0 data/ubuntu-advantage-notification.desktop.in
|
||||||
|
sed -i '/ubuntu-advantage-notification/d' debian/update-notifier.install
|
||||||
|
sed -i '/ubuntu-advantage-notification.desktop.in.h/,+2d' po/*.po po/*.pot
|
||||||
|
|
||||||
|
# Remove ubuntu-advantage services
|
||||||
|
cat << EOF >> debian/postrm
|
||||||
|
# Remove previosly installed ubuntu-advantage-notification
|
||||||
|
rm -rf /usr/lib/update-notifier/ubuntu-advantage-notification && \
|
||||||
|
rm -rf /etc/xdg/autostart/ubuntu-advantage-notification.desktop
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Force removal of old services on previous version.
|
||||||
|
sed -i '/Description: Daemon/i Breaks: update-notifier-common (<= 3.192.54.6+11.0trisquel8)' debian/control
|
||||||
|
sed -i '/Suggests: policykit-1/i Breaks: update-notifier-common (<= 3.192.54.6+11.0trisquel8)' debian/control
|
||||||
|
|
||||||
changelog "Disabled hp-firmware handling and ubuntu-drivers"
|
changelog "Disabled hp-firmware handling and ubuntu-drivers"
|
||||||
|
|
||||||
compile
|
compile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue