File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
piratebox_origin/piratebox/piratebox Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 153153
154154set_Hostname () {
155155 local name=$1 ; shift ;
156- echo "
157- <html>
158- <head><title>Redirect...</title>
159- <meta http-equiv='refresh' content='0;url=http://$1 /' />
160- <meta http-equiv='cache-control' content='no-cache'>
161- </head>
162- <body>
163- Redirect
164- </body>
165- </html>" > $WWW_FOLDER /redirect.html
166156
157+ sed " s|#####HOST#####|$name |g" $PIRATEBOX_FOLDER /src/redirect.html.schema > $WWW_FOLDER /redirect.html
167158 sed " s|HOST=\" $HOST \" |HOST=\" $name \" |" -i $PIRATEBOX_CONFIG
168159}
169160
170161if [ $2 = " hostname" ] ; then
171162 echo " Switching hostname to $3 "
172163 set_hostname " $3 "
173164 echo " ..done"
174- fi
165+ fi
175166
Original file line number Diff line number Diff line change 1+ <html>
2+ <head><title>Redirect...</title>
3+ <meta http-equiv='refresh' content='0;url=http://#####HOST#####/' />
4+ <meta http-equiv='cache-control' content='no-cache'>
5+ </head>
6+ <body>
7+ Redirect
8+ </body>
9+ </html>
10+
11+
You can’t perform that action at this time.
0 commit comments