From 649d1ebe9593cafe9c4ab9c4a14cabd569de0251 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Thu, 20 Dec 2018 21:58:44 +0100 Subject: [PATCH] hooks --- firefox-kde-post.hook | 10 ++++++++++ firefox-kde-pre.hook | 10 ++++++++++ firefox-post.hook | 10 ++++++++++ firefox-pre.hook | 10 ++++++++++ 4 files changed, 40 insertions(+) create mode 100644 firefox-kde-post.hook create mode 100644 firefox-kde-pre.hook create mode 100644 firefox-post.hook create mode 100644 firefox-pre.hook diff --git a/firefox-kde-post.hook b/firefox-kde-post.hook new file mode 100644 index 0000000..282bd76 --- /dev/null +++ b/firefox-kde-post.hook @@ -0,0 +1,10 @@ +[Trigger] +Type = Package +Operation = Install +Operation = Upgrade +Target = firefox-kde-opensuse + +[Action] +Description = Copy Firefox Distribution Settings +When = PostTransaction +Exec = /usr/bin/cp -f /etc/manjaro-firefox-kde.ini /usr/lib/firefox/distribution/distribution.ini \ No newline at end of file diff --git a/firefox-kde-pre.hook b/firefox-kde-pre.hook new file mode 100644 index 0000000..a0ee6bc --- /dev/null +++ b/firefox-kde-pre.hook @@ -0,0 +1,10 @@ +[Trigger] +Type = Package +Operation = Install +Operation = Upgrade +Target = firefox-kde-opensuse + +[Action] +Description = Remove Firefox Distribution Settings +When = PreTransaction +Exec = /usr/bin/rm -f /usr/lib/firefox/distribution/distribution.ini{,.mjo} \ No newline at end of file diff --git a/firefox-post.hook b/firefox-post.hook new file mode 100644 index 0000000..026986d --- /dev/null +++ b/firefox-post.hook @@ -0,0 +1,10 @@ +[Trigger] +Type = Package +Operation = Install +Operation = Upgrade +Target = firefox + +[Action] +Description = Copy Firefox Distribution Settings +When = PostTransaction +Exec = /usr/bin/cp -f /etc/manjaro-firefox.ini /usr/lib/firefox/distribution/distribution.ini \ No newline at end of file diff --git a/firefox-pre.hook b/firefox-pre.hook new file mode 100644 index 0000000..a67f546 --- /dev/null +++ b/firefox-pre.hook @@ -0,0 +1,10 @@ +[Trigger] +Type = Package +Operation = Install +Operation = Upgrade +Target = firefox + +[Action] +Description = Remove Firefox Distribution Settings +When = PreTransaction +Exec = /usr/bin/rm -f /usr/lib/firefox/distribution/distribution.ini{,.mjo} \ No newline at end of file