Files
tar1090/web.sh
Matthias Wirth da026f3659 pos filter stuff
2019-10-20 01:25:01 +02:00

24 lines
405 B
Bash
Executable File

#!/bin/bash
# file for local testing of changes to the webinterface
ipath=/usr/local/share/tar1090
if [ -z $1 ]; then
htmlpath="$ipath/html"
else
htmlpath="$ipath/$1-html"
fi
echo $htmlpath
mkdir -p $htmlpath
mv $htmlpath/config.js /tmp/
cp -r -T html $htmlpath
mv /tmp/config.js $htmlpath
# bust cache for all css and js files
sed -i -e "s/__cache_version__/$(date +%s)/g" $htmlpath/index.html