slitaz-pizza rev 72
Fixes for public fa,cy browsing
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Nov 04 01:58:56 2012 +0100 (2012-11-04) |
parents | f3cb89e93bec |
children | 4a6e2878f742 |
files | Makefile pizza web/lib/header.html |
line diff
1.1 --- a/Makefile Sun Nov 04 01:58:24 2012 +0100 1.2 +++ b/Makefile Sun Nov 04 01:58:56 2012 +0100 1.3 @@ -30,20 +30,24 @@ 1.4 # Installation 1.5 1.6 install: msgfmt 1.7 - install -m 0777 -d $(DESTDIR)/etc/slitaz 1.8 - install -m 0777 -d $(DESTDIR)$(PREFIX)/bin 1.9 - install -m 0777 -d $(DESTDIR)$(PREFIX)/share/pizza/web 1.10 - install -m 0777 -d $(DESTDIR)$(PREFIX)/share/pizza/web/images 1.11 - install -m 0777 -d $(DESTDIR)$(PREFIX)/share/doc/pizza 1.12 + install -m 0755 -d $(DESTDIR)/etc/slitaz 1.13 + install -m 0755 -d $(DESTDIR)$(PREFIX)/bin 1.14 + install -m 0755 -d $(DESTDIR)$(PREFIX)/share/pizza/public 1.15 + install -m 0755 -d $(DESTDIR)$(PREFIX)/share/pizza/web 1.16 + install -m 0755 -d $(DESTDIR)$(PREFIX)/share/pizza/web/images 1.17 + install -m 0755 -d $(DESTDIR)$(PREFIX)/share/pizza/web/lib 1.18 + install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/pizza 1.19 install -m 0755 pizza $(DESTDIR)$(PREFIX)/bin 1.20 install -m 0755 pizza-bot $(DESTDIR)$(PREFIX)/share/pizza 1.21 + install -m 0755 public/index.cgi $(DESTDIR)$(PREFIX)/share/pizza/public 1.22 install -m 0755 data/* $(DESTDIR)$(PREFIX)/share/pizza 1.23 install -m 0644 pizza.conf $(DESTDIR)/etc/slitaz 1.24 install -m 0644 README $(DESTDIR)$(PREFIX)/share/doc/pizza 1.25 cp -a doc/* $(DESTDIR)$(PREFIX)/share/doc/pizza 1.26 - cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale 1.27 + cp -a po/mo $(DESTDIR)$(PREFIX)/share/locale 1.28 cp -a web $(DESTDIR)$(PREFIX)/share/pizza 1.29 chown -R root.root $(DESTDIR)$(PREFIX)/share/pizza 1.30 + chmod 755 $(DESTDIR)$(PREFIX)/share/pizza/web/*.cgi 1.31 1.32 uninstall: 1.33 rm -rf \
2.1 --- a/pizza Sun Nov 04 01:58:24 2012 +0100 2.2 +++ b/pizza Sun Nov 04 01:58:56 2012 +0100 2.3 @@ -152,6 +152,7 @@ 2.4 echo -n "Installing the web interface..." 2.5 mkdir -p $public && chmod 0777 $public 2.6 cp -a $DATA/web/* $VHOST 2.7 + cp -a $DATA/public/* $public 2.8 status 2.9 echo "Pizza chroot : $chroot" 2.10 echo "Vhost path : $VHOST"
3.1 --- a/web/lib/header.html Sun Nov 04 01:58:24 2012 +0100 3.2 +++ b/web/lib/header.html Sun Nov 04 01:58:56 2012 +0100 3.3 @@ -3,9 +3,9 @@ 3.4 <head> 3.5 <meta charset="utf-8" /> 3.6 <title>SliTaz Pizza</title> 3.7 - <link rel="stylesheet" type="text/css" href="style.css" /> 3.8 + <link rel="stylesheet" type="text/css" href="/style.css" /> 3.9 <link rel="shortcut icon" href="favicon.ico" /> 3.10 - <script type="text/javascript" src="lib/functions.js"></script> 3.11 + <script type="text/javascript" src="/lib/functions.js"></script> 3.12 </head> 3.13 <body> 3.14 3.15 @@ -15,12 +15,12 @@ 3.16 <a href="http://www.slitaz.org/">Home</a> 3.17 <a href="http://scn.slitaz.org/">Community</a> 3.18 <a href="http://forum.slitaz.org/">Forum</a> 3.19 - <a href="./">Pizza:</a> 3.20 - <a href="./?info">Info</a> 3.21 - <a href="./?rss">RSS</a> 3.22 - <a href="./?help">Help</a> 3.23 + <a href="/">Pizza:</a> 3.24 + <a href="/?info">Info</a> 3.25 + <a href="/?rss">RSS</a> 3.26 + <a href="/?help">Help</a> 3.27 </div> 3.28 - <h1><a href="./">SliTaz Pizza</a></h1> 3.29 + <h1><a href="/">SliTaz Pizza</a></h1> 3.30 </div> 3.31 3.32 <div id="content">