diff --git a/default b/default index 4199e55..3121282 100644 --- a/default +++ b/default @@ -21,3 +21,4 @@ URL_978="http://127.0.0.1/skyaware978" CHUNK_SIZE=60 INT_978=1 PF_URL="http://127.0.0.1:30053/ajax/aircraft" +COMPRESS_978="" diff --git a/tar1090.service b/tar1090.service index a61c4e0..f138aa7 100644 --- a/tar1090.service +++ b/tar1090.service @@ -11,7 +11,7 @@ RuntimeDirectory=INSTANCE RuntimeDirectoryMode=0755 EnvironmentFile=/usr/local/share/tar1090/default EnvironmentFile=/etc/default/INSTANCE -ExecStart=-/usr/local/share/tar1090/tar1090.sh /run/INSTANCE SOURCE_DIR $INTERVAL $HISTORY_SIZE $CHUNK_SIZE $ENABLE_978 $URL_978 $INT_978 $PF_URL +ExecStart=-/usr/local/share/tar1090/tar1090.sh /run/INSTANCE SOURCE_DIR $INTERVAL $HISTORY_SIZE $CHUNK_SIZE $ENABLE_978 $URL_978 $INT_978 $PF_URL $COMPRESS_978 Type=simple Restart=always RestartSec=30 diff --git a/tar1090.sh b/tar1090.sh index 77b2b96..75ffd64 100755 --- a/tar1090.sh +++ b/tar1090.sh @@ -14,6 +14,7 @@ ENABLE_978=$6 URL_978=$7 INT_978=$8 PF_URL=$9 +COMPRESS_978=${10} if ! [[ -d $RUN_DIR && -d $SRC_DIR ]] then