Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | MIRROR_DIR="/net/mirror" |
---|
4 | HTTP_DIR="/var/www/mirror" |
---|
5 | |
---|
6 | case $1 in |
---|
7 | configure) |
---|
8 | rm -f $HTTP_DIR |
---|
9 | ln -s "$MIRROR_DIR" "$HTTP_DIR" |
---|
10 | |
---|
11 | if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then |
---|
12 | |
---|
13 | . /usr/share/apache2/apache2-maintscript-helper |
---|
14 | apache2_invoke ensite mirror |
---|
15 | apache2_invoke ensite lliurex-mirror |
---|
16 | fi |
---|
17 | |
---|
18 | invoke-rc.d apache2 reload || true |
---|
19 | n4d-modules enable-plugin /etc/n4d/conf.d/LliurexMirrorCore || true |
---|
20 | |
---|
21 | ;; |
---|
22 | *) |
---|
23 | echo "Nothing to do" |
---|
24 | ;; |
---|
25 | esac |
---|
26 | |
---|
27 | #DEBHELPER# |
---|
Note: See
TracBrowser
for help on using the repository browser.