-
Notifications
You must be signed in to change notification settings - Fork 2
/
INSTALL.sh
executable file
·30 lines (28 loc) · 954 Bytes
/
INSTALL.sh
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
#!/bin/bash
# $Id: INSTALL.sh,v 1.13 2010/04/25 10:46:44 o-mizuno Exp $
echo "====================================================================="
echo " PMAN3 installer script"
echo "====================================================================="
echo "mkdir db & tmp"
mkdir db
chmod 777 db
mkdir tmp
chmod 777 tmp
chmod 777 install.cgi
echo "Making .htaccess files ..."
cat <<EOF > .htaccess
<Files ~ "\.(pl|db|sh)$">
deny from all
</Files>
EOF
cp .htaccess db/
cp .htaccess lib/
touch ./index.html ./db/index.html ./lib/index.html
cat <<EOF > ./index.html
<head><meta http-equiv="refresh" CONTENT="0;URL=./pman3.cgi"></head>
<body><a href="./pman3.cgi">PMAN3</a></body>
EOF
echo "Done."
echo "====================================================================="
echo " Please run install.cgi from your browser."
echo "====================================================================="