[chrome-gnome-shell] ubuntu: force remove Chrome/Chromium policy files.
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell] ubuntu: force remove Chrome/Chromium policy files.
- Date: Thu, 8 Sep 2016 21:17:24 +0000 (UTC)
commit d75be791c264e750e977ef2e7e59579dd81881f9
Author: Yuri Konotopov <ykonotopov gmail com>
Date: Fri Sep 9 00:17:08 2016 +0300
ubuntu: force remove Chrome/Chromium policy files.
By default Debian/Ubuntu do not removes conffiles under /etc along with
package. Because of this it's not possible to uninstall web extension
from browser.
This change force removal of policy files.
https://github.com/nE0sIghT/chrome-gnome-shell-mirror/issues/12
https://github.com/nE0sIghT/chrome-gnome-shell-mirror/issues/13
contrib/ubuntu/changelog | 12 ++++++++++++
contrib/ubuntu/postrm | 14 ++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/contrib/ubuntu/changelog b/contrib/ubuntu/changelog
index 995b3d3..4af2644 100644
--- a/contrib/ubuntu/changelog
+++ b/contrib/ubuntu/changelog
@@ -1,5 +1,17 @@
chrome-gnome-shell (${PROJECT_VERSION}-${DEBIAN_VERSION}) ${DEBIAN_DISTRO}; urgency=low
+ * Version bump
+
+ -- Yuri Konotopov <ykonotopov gmail com> Mon, 8 Sep 2016 19:23:18 +0300
+
+chrome-gnome-shell (7-0ubuntu6) trusty; urgency=low
+
+ * Force remove policy files with package
+
+ -- Yuri Konotopov <ykonotopov gmail com> Mon, 8 Sep 2016 19:23:18 +0300
+
+chrome-gnome-shell (7-0ubuntu4) trusty; urgency=low
+
* Updated build build-time dependencies
* Added python-gi dependency
* Initial release
diff --git a/contrib/ubuntu/postrm b/contrib/ubuntu/postrm
new file mode 100755
index 0000000..70f24e5
--- /dev/null
+++ b/contrib/ubuntu/postrm
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Force remove policies files.
+# Otherwise it will not be possible to uninstall web extension.
+POLICIES="/etc/chromium/policies/managed/chrome-gnome-shell.json
+/etc/opt/chrome/policies/managed/chrome-gnome-shell.json"
+
+IFS="
+"
+for file in ${POLICIES}; do
+ if [ -e "${file}" ]; then
+ rm "${file}"
+ fi
+done
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]