summarylogtreecommitdiffstats
path: root/arsch-keyring.install
diff options
context:
space:
mode:
authorhenning mueller2015-07-05 19:50:37 +0200
committerhenning mueller2015-07-05 19:50:37 +0200
commitdd31c5c42f6c8cc55c50a60dbcbd4b6f1f9c1a8d (patch)
treeae3a968e8b5ef6b087695f98e4f22389ede6bbcb /arsch-keyring.install
downloadaur-arsch-keyring.tar.gz
Initial import
Diffstat (limited to 'arsch-keyring.install')
-rw-r--r--arsch-keyring.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/arsch-keyring.install b/arsch-keyring.install
new file mode 100644
index 000000000000..61ab329a21a3
--- /dev/null
+++ b/arsch-keyring.install
@@ -0,0 +1,14 @@
+post_upgrade() {
+ if usr/bin/pacman-key -l >/dev/null 2>&1; then
+ usr/bin/pacman-key --populate arsch
+ else
+ echo " >>> Run \`pacman-key --init\` to set up your pacman keyring."
+ echo " >>> Then run \`pacman-key --populate arsch\` to install the arsch keyring."
+ fi
+}
+
+post_install() {
+ if [ -x usr/bin/pacman-key ]; then
+ post_upgrade
+ fi
+}