summaryrefslogtreecommitdiff
path: root/config/install
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-05-11 07:20:25 +0200
committerpks <pks@pks.rocks>2021-05-11 07:20:25 +0200
commit97ee70aafa781d36b47611e609e031a9358488a0 (patch)
tree6582345bbe5bbfe5c030203b629cde5f584cbdde /config/install
parent33e187277fea4a2d23152360549821e480f8d482 (diff)
mv
Diffstat (limited to 'config/install')
-rwxr-xr-xconfig/install11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/install b/config/install
new file mode 100755
index 0000000..0977113
--- /dev/null
+++ b/config/install
@@ -0,0 +1,11 @@
+#!/usr/bin/bash
+
+sudo ln -s config/weather-logger-receiver.yaml /etc/
+sudo ln -s config/systemd/weather-logger-receiver.service /etc/systemd/system/
+sudo ln -s config/syslog/50weather-logger-receiver.conf /etc/rsyslog.d/
+sudo ln -s config/logrotate/weather-logger-receiver /etc/logrorate.d/
+
+useradd -M -s /bin/bash -G dialout weather-logger
+
+sudo mkdir -p /run/weather_logger/ /var/log/weather_logger/
+sudo chown weather-logger:weather-logger /run/weather_logger/ /var/log/weather_logger/