blob: 17e8be8e13c2a27bc4a813e52d9ce5d4fa25a341 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
post_install(){
useradd aria2 -r -U -d /var/share/aria2/ -s /bin/nologin
passwd -l aria2 &> /dev/null
install -d -o aria2 -g aria2 /var/share/aria2/
touch /var/share/aria2/aria2.session
cat << EOF
Now the aria2d is installed, you may want to ...
1. check the config file for aria2 at /etc/conf.d/aria2.conf
2. get the downloaded files at /var/share/aria2/
EOF
}
post_remove() {
userdel aria2
echo -n -e "Now the aria2d was removed from your system,\n you may need to check the directory /var/share/aria2/ by manual."
}
|