blob: 36eabda9a709063f8214ba25500035601087e6dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# This script runs after installed and before remove.
# It will automatically add or remove configurations
# in `/etc/pacman.conf`.
post_install() {
cat >> /etc/pacman.conf << EOF
# archlinuxcn community repository mirrorlist.
# view https://www.archlinuxcn.org
[archlinuxcn]
Include = /etc/pacman.d/archlinuxcn-mirrorlist
EOF
# Install archlinuxcn-keyring to import PGP Keys.
cat << EOF
Great! You have successfully installed archlinuxcn-mirrorlist.
Now, you should import PGP Keys:
sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring
EOF
}
pre_remove () {
sed -i "/archlinuxcn/d" /etc/pacman.conf
}
|