summarylogtreecommitdiffstats
path: root/arsch-keyring.install
diff options
context:
space:
mode:
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
+}