blob: 7a6b98d658d5b5a9ef466ca48dbcc892eda6a1f2 (
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
29
30
31
32
33
34
35
36
37
|
post_install()
{
systemctl enable paclan.service
systemctl start paclan.service
echo "Don't forget to edit /etc/pacman.conf and include
Include = /etc/pacman.d/mirrorlist.paclan
to each repo where you would like to see paclan being used (that would be at least [core], [extra] and [community])"
}
post_update()
{
echo "Attempting to automatically migrate pacman.conf to mirrorlist.paclan"
sed -i 's|/etc/pacman.d/paclan.conf|/etc/pacman.d/mirrorlist.paclan|g' /etc/pacman.conf
echo "Please check that the repos in /etc/pacman.conf has been updated to use the line
Include = /etc/pacman.d/mirrorlist.paclan
in each repo where you would like paclan used (suggested: at least [core], [extra] and [community])"
}
pre_remove()
{
echo "Attempting to automatically update pacman.conf"
sed -i 's|Include\s*=\s*/etc/pacman.d/paclan.conf|# \0|g' /etc/pacman.conf
sed -i 's|Include\s*=\s*/etc/pacman.d/mirrorlist.paclan|# \0|g' /etc/pacman.conf
systemctl stop paclan.service
systemctl disable paclan.service
}
post_remove()
{
echo "Don't forget to remove the additional Include lines from /etc/pacman.conf. They should look like:
Include = /etc/pacman.d/mirrorlist.paclan"
systemctl daemon-reload
}
|