blob: 4c7fc9ae935f9dd35df58bd21792e9961db57e1a (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
post_install() {
cat << EOF
The cow.service is only available for an available user
Configuration sample can be found at : https://github.com/cyfdecyf/cow/tree/master/doc/sample-config
mkdir -p ~/.cow
wget https://raw.githubusercontent.com/cyfdecyf/cow/master/doc/sample-config/rc
and edit listen and proxy settings. the document is in chineese :)
for direct and block list, you can also edit ~/.cow/blocked and ~/.cow/direct
EOF
post_upgrade
}
post_upgrade() {
cat << EOF
Running cow system instance for user account:
To reload system systemd modules, execute
systemctl daemon-reload
To start cow, execute:
systemctl start cow@user
To autostart cow on system start, execute
systemctl enable cow@user
Running cow user instance (will used current user account):
To reload user systemd modules, execute
systemctl --user daemon-reload
To start cow manually, execute:
systemctl --user start cow
To autostart cow on user login, execute
systemctl --user enable cow
EOF
}
|