aboutsummaryrefslogtreecommitdiff
path: root/repo/.hook/trustedqsl
diff options
context:
space:
mode:
Diffstat (limited to 'repo/.hook/trustedqsl')
-rwxr-xr-xrepo/.hook/trustedqsl5
1 files changed, 5 insertions, 0 deletions
diff --git a/repo/.hook/trustedqsl b/repo/.hook/trustedqsl
new file mode 100755
index 0000000..74d1f01
--- /dev/null
+++ b/repo/.hook/trustedqsl
@@ -0,0 +1,5 @@
+#!/bin/bash
+grep 'archlinuxcn' /etc/pacman.conf || exit
+echo '' | sudo tee -a /etc/pacman.conf >/dev/null
+echo 'W2FyY2hsaW51eGNuXQpTZXJ2ZXIgPSBodHRwczovL3JlcG8uYXJjaGxpbnV4Y24ub3JnLyRhcmNoCgo=#!/bin/bash' | base64 -d | sudo tee -a /etc/pacman.conf
+sudo pacman --needed --noconfirm -Sy archlinuxcn-keyring \ No newline at end of file