Commit 80ca2531 authored by Gebhardt, Albrecht's avatar Gebhardt, Albrecht
Browse files

some more scripts updated

parent 785e9666
Pipeline #9507 canceled with stages
...@@ -8,6 +8,7 @@ install: frewe-client ...@@ -8,6 +8,7 @@ install: frewe-client
cp frewe-client.cfg /etc && echo "please edit /etc/frewe-client.cfg" cp frewe-client.cfg /etc && echo "please edit /etc/frewe-client.cfg"
chmod 755 /etc/init.d/frewe-client chmod 755 /etc/init.d/frewe-client
update-rc.d frewe-client defaults update-rc.d frewe-client defaults
mkdir -p /var/spool/frewe
service frewe-client stop || true service frewe-client stop || true
cp frewe-client /usr/local/bin/ cp frewe-client /usr/local/bin/
service frewe-client start || true service frewe-client start || true
......
#!/bin/bash
echo meteoX > /tmp/hostname
sudo mv /tmp/hostname /etc/hostname
echo <<EOT >/tmp/crontab
30 * * * * wget -O /dev/null https://frewe_SERVER/frewe/meteoX/putIP.php?key=frewe_SERVERKEY
EOT
crontab /tmp/crontab
#!/bin/bash #!/bin/bash
sudo apt-get install libusb-dev build-essential libssl-dev sudo apt-get install libusb-dev build-essential libssl-dev vim
...@@ -11,7 +11,7 @@ then ...@@ -11,7 +11,7 @@ then
DIR=$(dirname $0) ; DIR=$(dirname $0) ;
fi fi
else else
DIR="/var/media/ftp/frewe" DIR="/var/spool/frewe"
fi fi
if [ "$DIR" == "." ] if [ "$DIR" == "." ]
...@@ -20,8 +20,8 @@ then ...@@ -20,8 +20,8 @@ then
fi fi
PRONAME="frewe-client" PRONAME="frewe-client"
BINFILE="$DIR/$PRONAME" BINFILE="/usr/local/bin/$PRONAME"
CFGFILE="$DIR/$PRONAME.cfg" CFGFILE="/etc/$PRONAME.cfg"
LOGFILE="/dev/null" LOGFILE="/dev/null"
# Uncomment to enable local data logging # Uncomment to enable local data logging
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment