Merge remote-tracking branch 'origin/hotfix-1.1.4' into development

This commit is contained in:
Matthias Strubel 2017-06-30 09:38:24 +02:00
commit b782fd944e
13 changed files with 28 additions and 28 deletions

View File

@ -1,5 +1,13 @@
CHANGELOG
=== 1.1.4 ===
* [New] Removed legacy redirect.html, use /index.html only
* [New] install_piratebox.sh, avoid distribution of index files, if turned off.
* [New] mime.types: Adding gpx mime-type
* [Fix] lang-de ; fix grammar
* [Fix] [RPi] Fix wrong path in wifi client helper script
* [Fix] initd: minircd startup fix setuid
=== 1.1.3 ===
* [New] Translation bt-pr
* [New] [RPi] Helper scripts to jump to wifi client mode

View File

@ -81,7 +81,7 @@ $HTTP["url"] =~ "^/board/" {
# 404 Error Page with redirect
#
#server.error-handler-404 = "/redirect.html"
#server.error-handler-404 = "/index.html"
## for better debugging
#server.modules += ( "mod_accesslog" )

View File

@ -81,7 +81,7 @@ $HTTP["url"] =~ "^/board/" {
# 404 Error Page with redirect
#
#server.error-handler-404 = "/redirect.html"
#server.error-handler-404 = "/index.html"
## for better debugging
#server.modules += ( "mod_accesslog" )

View File

@ -67,7 +67,10 @@ if [ "$1" = 'part2' ] ; then
mkdir -p "$PIRATEBOX_FOLDER/tmp"
#Distribute the Directory Listing files
"$PIRATEBOX_FOLDER/bin/distribute_files.sh" "$SHARE_FOLDER/Shared" true
if [ "$CUSTOM_DIRLIST_COPY" = "yes" ] ; then
"$PIRATEBOX_FOLDER/bin/distribute_files.sh" "$SHARE_FOLDER/Shared" true
fi
#Set permissions
chown "$LIGHTTPD_USER":"$LIGHTTPD_GROUP" "$PIRATEBOX_FOLDER/share" -R
chmod u+rw "$PIRATEBOX_FOLDER/share"
@ -172,9 +175,8 @@ set_hostname() {
name=$1 ; shift;
sed -e "s|#####HOST#####|$name|g" \
"$PIRATEBOX_FOLDER"/src/redirect.html.schema > \
"$WWW_FOLDER"/redirect.html
sed -e "s|HOST=\"$HOST\"|HOST=\"$name\"|" -i "$PIRATEBOX_CONFIG"
"$PIRATEBOX_FOLDER"/src/redirect.html.schema > \
"$WWW_FOLDER"/index.html
}
if [ "$1" = "hostname" ] ; then

View File

@ -1,7 +1,7 @@
# 404 Error Page with redirect
# only for non piratebox Domains, that makes UI development easier.
$HTTP["host"] != var.PIRATEBOX_HOSTNAME {
server.error-handler-404 = "/redirect.html"
server.error-handler-404 = "/index.html"
}

View File

@ -73,6 +73,7 @@ setenv.add-response-header += ( "Cache-Control" => "max-age=60, must-revalidate,
# 404 Error Page with redirect
include "/opt/piratebox/conf/lighttpd/all-redirect.conf"
=======
## for better debugging
#server.modules += ( "mod_accesslog" )

View File

@ -87,7 +87,7 @@ mimetype.assign = (
".epub" => "application/epub+zip",
".fb2" => "text/xml",
".svg" => "image/svg+xml",
".gpx" => "application/gpx+xml",
# make the default mime type application/octet-stream.
"" => "application/octet-stream",
)

View File

@ -200,14 +200,14 @@ case "$1" in
. $CONF_IRC
IRC_PARMS="--setuid $IRC_USER --daemon --motd '$IRC_MOTD' "
IRC_PARMS="--daemon --motd $IRC_MOTD "
if [ ! -z "$IRC_STATEDIR" ] ; then
IRC_PARMS=" $IRCPARMS --statedir '$IRC_STATEDIR' "
IRC_PARMS=" $IRCPARMS --statedir $IRC_STATEDIR "
fi
log_daemon_msg "Starting Miniircd..."
start-stop-daemon $DROOPY_USER -m -S -p $PIDFILE_IRC -x $PIRATEBOX/bin/miniircd.py -- $IRC_PARMS
start-stop-daemon $IRC_USER -m -S -p $PIDFILE_IRC -x $PIRATEBOX/bin/miniircd.py -- $IRC_PARMS
log_end_msg $?
fi
fi

View File

@ -192,13 +192,13 @@ case "$1" in
#Start IRC Server
if [ "$ENABLE_IRC_SERVER" = "yes" ] ; then
. $CONF_IRC
IRC_PARMS="--setuid $IRC_USER --daemon --motd '$IRC_MOTD' "
IRC_PARMS="--daemon --motd $IRC_MOTD "
if [ ! -z "$IRC_STATEDIR" ] ; then
IRC_PARMS=" $IRCPARMS --statedir '$IRC_STATEDIR' "
IRC_PARMS=" $IRCPARMS --statedir $IRC_STATEDIR "
fi
echo "Starting Miniircd..."
start-stop-daemon $DROOPY_USER -m -S -p $PIDFILE_IRC -x $PIRATEBOX/bin/miniircd.py -- $IRC_PARMS
start-stop-daemon $IRC_USER -m -S -p $PIDFILE_IRC -x $PIRATEBOX/bin/miniircd.py -- $IRC_PARMS
echo $?
fi
fi

View File

@ -3,7 +3,7 @@
# Wrapper script for the steps to enable wifi client
systemctl stop piratebox
if /opt/piratebox/rpi/run_client.sh ; then
if /opt/piratebox/rpi/bin/run_client.sh ; then
echo "Started Wifi client sucessfully!"
exit 0
else

View File

@ -1,11 +0,0 @@
<html>
<head><title>Redirect...</title>
<meta http-equiv="refresh" content="0;url=http://piratebox.lan/content" />
<meta http-equiv='cache-control' content='no-cache, no-store, must-revalidate' />
<meta http-equiv='pragma' content='no-cache' />
<meta http-equiv='expires' content='0' />
</head>
<body>
Redirect
</body>
</html>

View File

@ -68,7 +68,7 @@ $(document).ready(function() {
var locationPath = filterPath(location.pathname);
var scrollElem = scrollableElement('html', 'body');
$('a[href*=#]').each(function() {
$('a[href*=\\#]').each(function() {
var thisPath = filterPath(this.pathname) || locationPath;
if ( locationPath == thisPath
&& (location.hostname == this.hostname || !this.hostname)

View File

@ -10,7 +10,7 @@ logoIMG.alt = PirateBox
logoIMG.title = PirateBox - Share Freely
welcomeWelcome = Willkommen
welcomeDescription.innerHTML = Das Wichtigste vorweg: Hier geht nichts Illegales oder Unheimliches vor. Dies ist ein sozialer Platz, wo jeder chatten und Dateien austauschen kann und zwar anonym! Dies ist ein Offline-Netzwerk, speziell zum Filesharing und Chatten entwickelt. Vom Netz getrennt zu sein, ist die Voraussetzung f&uuml;r volle Anonymit&auml;t. Hab Spa&szlig;, chatte mit Menschen und teile Dateien, die du magst.
welcomeDescription.innerHTML = Das Wichtigste vorweg: Hier geht nichts Illegales oder Unheimliches vor. Dies ist ein sozialer Platz, wo jeder chatten und Dateien austauschen kann und zwar anonym! Dies ist ein Offline-Netzwerk, speziell zum Filesharing und Chatten entwickelt. Vom Netz getrennt zu sein ist die Voraussetzung f&uuml;r volle Anonymit&auml;t. Hab Spa&szlig;, chatte mit Menschen und teile Dateien, die du magst.
welcomeThanksButton.value = Alles klar!
sidebarUpload = Upload ->
sidebarIframeNotSupported = Dein Browser unterst&uuml;tzt keine Iframes. Wenn du etwas hochladen m&ouml;chtest, hier entlang: