mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-21 03:55:02 +02:00
🚀 feat(_postinstall): add post installation/upgrade function
This commit is contained in:
14
snigdhaos-keyring-dev/snigdhaos-keyring.install
Normal file
14
snigdhaos-keyring-dev/snigdhaos-keyring.install
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
post_upgrade() {
|
||||||
|
if usr/bin/pacman-key -l >/dev/null 2>&1; then
|
||||||
|
usr/bin/pacman-key --populate snigdhaos
|
||||||
|
else
|
||||||
|
echo " >>> Run \`pacman-key --init\` to set up your pacman keyring."
|
||||||
|
echo " >>> Then run \`pacman-key --populate snigdhaos\` to install the Snigdha OS keyring."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
if [ -x usr/bin/pacman-key ]; then
|
||||||
|
post_upgrade
|
||||||
|
fi
|
||||||
|
}
|
Reference in New Issue
Block a user