Files
tar1090/web.sh
2019-08-19 12:16:16 +02:00

18 lines
337 B
Bash
Executable File

#!/bin/bash
# file for local testing of changes to the webinterface
ipath=/usr/local/share/tar1090
mkdir -p $ipath
mv $ipath/html/config.js /tmp/
rm -f $ipath/html/db/*.json
cp -r html $ipath
mv /tmp/config.js $ipath/html/
# bust cache for all css and js files
sed -i -e "s/__cache_version__/$(date +%s)/g" $ipath/html/index.html