diff --git a/88-tar1090.conf b/88-tar1090.conf index 6e85684..16eb8a5 100644 --- a/88-tar1090.conf +++ b/88-tar1090.conf @@ -3,7 +3,7 @@ alias.url += ( "/tar1090/data/" => "/run/dump1090-fa/", "/tar1090/chunks/" => "/run/tar1090/", - "/tar1090/" => "/usr/local/share/tar1090/html" + "/tar1090/" => "/usr/local/share/tar1090/html/" ) # redirect the slash-less URL diff --git a/install.sh b/install.sh index 6dc714d..f33441b 100755 --- a/install.sh +++ b/install.sh @@ -34,12 +34,12 @@ then echo "Unable to download files, exiting! (Maybe try again?)" exit 1 fi + cd tar1090-master fi mkdir -p $ipath -cp -r -T tar1090-master $ipath +cp -r * $ipath -cd tar1090-master cp -n default /etc/default/tar1090 cp tar1090.service /lib/systemd/system diff --git a/tar1090.service b/tar1090.service index 6bb9ddb..61824ad 100644 --- a/tar1090.service +++ b/tar1090.service @@ -9,7 +9,7 @@ User=dump1090 RuntimeDirectory=tar1090 RuntimeDirectoryMode=0755 EnvironmentFile=/etc/default/tar1090 -ExecStart=-/usr/local/bin/tar1090.sh +ExecStart=-/usr/local/share/tar1090/tar1090.sh Type=simple Restart=always RestartSec=30