Add update script

This commit is contained in:
Simon 2021-05-31 17:50:51 +01:00
parent b7c91e75ee
commit 7f59119ef9
2 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,7 @@
echo FreeDMR Docker installer...
echo Installing require packages...
echo Installing required packages...
apt-get install docker.io &&
apt-get install conntrack &&

View File

@ -0,0 +1,9 @@
#!/bin/bash
docker pull hacknix/freedmr:latest &&
docker container rm freedmr --force &&
docker run --name=freedmr -d --read-only -v /etc/freedmr/freedmr.cfg:/opt/freedmr/freedmr.cfg \
-v /var/log/freedmr/freedmr.log:/opt/freedmr/freedmr.log \
-v /etc/freedmr/rules.py:/opt/freedmr/rules.py -p 62031:62031/udp -p 62036-62046:62036-62046/udp \
-p 4321:4321/tcp hacknix/freedmr:latest
conntrack -F