OSDN Git Service

[Fix] Fixed *.install file
authorlap1sid <yukir0dev@gmail.com>
Sat, 7 Mar 2020 21:52:38 +0000 (06:52 +0900)
committerlap1sid <yukir0dev@gmail.com>
Sat, 7 Mar 2020 21:52:38 +0000 (06:52 +0900)
stable/alterlinux-keyring/alterlinux-keyring.install [new file with mode: 0755]

diff --git a/stable/alterlinux-keyring/alterlinux-keyring.install b/stable/alterlinux-keyring/alterlinux-keyring.install
new file mode 100755 (executable)
index 0000000..022981f
--- /dev/null
@@ -0,0 +1,14 @@
+post_upgrade() {
+       if usr/bin/pacman-key -l >/dev/null 2>&1; then
+               usr/bin/pacman-key --populate alterlinux
+       else
+               echo " >>> Run \`pacman-key --init\` to set up your pacman keyring."
+               echo " >>> Then run \`pacman-key --populate alterlinux\` to install the alterlinux keyring."
+       fi
+}
+
+post_install() {
+       if [ -x usr/bin/pacman-key ]; then
+               post_upgrade
+       fi
+}