blob: 92ef07bbd9e52af0efa777305ac1a6dfc0944fd6 (
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
|
APP_PATH="/usr/share/webapps/rutorrent"
post_install() {
cat << EOF
[Webserver Alias Examples]
Lighttpd: alias.url = ("/rutorrent/" => \""${APP_PATH}/"\")
Apache: Alias /rutorrent/ /usr/share/webapps/rutorrent/
Hiawatha: Alias = /rutorrent:/usr/share/webapps/rutorrent
Nginx: ln -s /usr/share/webapps/rutorrent /srv/http/rutorrent
Please configure .htaccess in /usr/share/webapps/rutorrent based on the htaccess-example in the same folder.
EOF
post_upgrade
}
post_upgrade() {
chown -R http:http "${APP_PATH}"
chmod -R 755 "${APP_PATH}"
cd "$APP_PATH"
chmod 750 {conf,share/{users,settings}}
chmod 777 {tmp,share/torrents}
chmod 640 share/.htaccess
}
|