summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-04-04 13:36:30 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-04-04 13:36:30 +0200
commit05e42760dc6ac0a8236d7f69fb0f30ba6d380ed0 (patch)
tree68f7ea8c6c244c91c9bded6ecc59bca4a2a846e7
parent53aa0623f46dc1e432b43aa56bb169c1c62a3043 (diff)
downloaditzks-systems-05e42760dc6ac0a8236d7f69fb0f30ba6d380ed0.tar.gz
itzks-systems-05e42760dc6ac0a8236d7f69fb0f30ba6d380ed0.tar.bz2
itzks-systems-05e42760dc6ac0a8236d7f69fb0f30ba6d380ed0.zip
itzks-systems-common.maintscript: Handle mv_conffile for itzks_papersize.js
-rw-r--r--debian/itzks-systems-common.maintscript1
-rwxr-xr-xdebian/itzks-systems-common.postinst7
-rwxr-xr-xdebian/itzks-systems-common.postrm7
-rwxr-xr-xdebian/itzks-systems-common.preinst8
4 files changed, 1 insertions, 22 deletions
diff --git a/debian/itzks-systems-common.maintscript b/debian/itzks-systems-common.maintscript
new file mode 100644
index 0000000..ae68bdf
--- /dev/null
+++ b/debian/itzks-systems-common.maintscript
@@ -0,0 +1 @@
+mv_conffile /etc/iceweasel/pref/itzks_papersize.js /etc/firefox-esr/itzks_papersize.js 2016.07.15.1
diff --git a/debian/itzks-systems-common.postinst b/debian/itzks-systems-common.postinst
index d60d52c..a142825 100755
--- a/debian/itzks-systems-common.postinst
+++ b/debian/itzks-systems-common.postinst
@@ -44,13 +44,6 @@ case "$1" in
update-icon-caches.gtk2 /usr/share/icons/hicolor
fi
- # move itzks_papersize.js from /etc/iceweasel/pref to /etc/firefox-esr/
- if dpkg --compare-versions "$2" le "2016.07.15.1"; then
- if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
- dpkg-maintscript-helper mv_conffile /etc/iceweasel/pref/itzks_papersize.js /etc/firefox-esr/itzks_papersize.js 2016.07.15.1 -- "$@"
- fi
- fi
-
# deploy Wine desktop fixes if Wine is installed
if which update-desktop-database 1>/dev/null && which wine 1>/dev/null; then
if [ ! -e /usr/share/applications/wine.desktop ]; then
diff --git a/debian/itzks-systems-common.postrm b/debian/itzks-systems-common.postrm
index 2f2fcf6..f9b21f8 100755
--- a/debian/itzks-systems-common.postrm
+++ b/debian/itzks-systems-common.postrm
@@ -35,13 +35,6 @@ case "$1" in
update-icon-caches.gtk2 /usr/share/icons/hicolor
fi
- # move itzks_papersize.js from /etc/iceweasel/pref to /etc/firefox-esr/
- if dpkg --compare-versions "$2" le "2016.07.15.1" && [ -e /etc/firefox-esr ]; then
- if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
- dpkg-maintscript-helper mv_conffile /etc/iceweasel/pref/itzks_papersize.js /etc/firefox-esr/itzks_papersize.jss 2016.07.15.1 -- "$@"
- fi
- fi
-
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
diff --git a/debian/itzks-systems-common.preinst b/debian/itzks-systems-common.preinst
index 56fe3a2..5c26205 100755
--- a/debian/itzks-systems-common.preinst
+++ b/debian/itzks-systems-common.preinst
@@ -23,14 +23,6 @@ case "$1" in
dpkg-divert --add --rename --package itzks-systems-common --divert /usr/bin/passwd.gnu /usr/bin/passwd
fi
- # move itzks_papersize.js from /etc/iceweasel/pref to /etc/firefox-esr/
- if dpkg --compare-versions "$2" le "2016.07.15.1"; then
- mkdir -p /etc/firefox-esr
- if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
- dpkg-maintscript-helper mv_conffile /etc/iceweasel/pref/itzks_papersize.js /etc/firefox-esr/itzks_papersize.jss 2016.07.15.1 -- "$@"
- fi
- fi
-
;;
abort-upgrade)
;;