comparison install.sh @ 33:7125b13d0528

Hide complaints from mkdir
author Daniel O'Connor <darius@dons.net.au>
date Mon, 13 Dec 2021 23:04:12 +1030
parents b6f96e8738ca
children
comparison
equal deleted inserted replaced
32:b6f96e8738ca 33:7125b13d0528
1 #!/bin/sh 1 #!/bin/sh
2 2
3 root=$(cd $(dirname $0); pwd) 3 root=$(cd $(dirname $0); pwd)
4 4
5 # Create service files for running and logging 5 # Create service files for running and logging
6 mkdir -p /service/vanlogger/log 6 mkdir -p /service/vanlogger/log >/dev/null 2>&1
7 cat >/service/vanlogger/run <<EOF 7 cat >/service/vanlogger/run <<EOF
8 #!/bin/sh 8 #!/bin/sh
9 exec 2>&1 9 exec 2>&1
10 exec /usr/bin/python $root/vanlogger.py 10 exec /usr/bin/python $root/vanlogger.py
11 EOF 11 EOF
15 exec multilog t s25000 n4 /var/log/vanlogger 15 exec multilog t s25000 n4 /var/log/vanlogger
16 EOF 16 EOF
17 chmod 755 /service/vanlogger/run /service/vanlogger/log/run 17 chmod 755 /service/vanlogger/run /service/vanlogger/log/run
18 18
19 # Create rc.local hooks for reinstallation 19 # Create rc.local hooks for reinstallation
20 mkdir /data/rc.local.d /data/rcS.local.d 20 mkdir /data/rc.local.d /data/rcS.local.d >/dev/null 2>&1
21 cat >/data/rc.local.d/vanlogger <<EOF 21 cat >/data/rc.local.d/vanlogger <<EOF
22 #!/bin/sh 22 #!/bin/sh
23 sh $root/install.sh 23 sh $root/install.sh
24 EOF 24 EOF
25 25