mediabox diff server.sh @ rev 5

Add po files and Makefile
author Christophe Lincoln <pankso@slitaz.org>
date Thu Feb 23 21:48:05 2017 +0100 (2017-02-23)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/server.sh	Thu Feb 23 21:48:05 2017 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# server.sh - Serve MediBox via Busybox HTTPd for development
     1.7 +#
     1.8 +. /lib/libtaz.sh
     1.9 +
    1.10 +if [ -d "cache" ]; then
    1.11 +	port=8090
    1.12 +	echo "Starting server on port: $port"
    1.13 +	echo "URL: $(boldify http://localhost:$port/)"
    1.14 +	echo "Press CTRL+C to stop the server"
    1.15 +	httpd -f -u www:www -p ${port} -c data/httpd.conf
    1.16 +else
    1.17 +	echo "Missing cache dir: cache/"
    1.18 +	echo "install -d -m 0777 cache"
    1.19 +fi && exit 0