diff options
author | pks <pks@pks.rocks> | 2021-05-11 07:19:59 +0200 |
---|---|---|
committer | pks <pks@pks.rocks> | 2021-05-11 07:19:59 +0200 |
commit | 33e187277fea4a2d23152360549821e480f8d482 (patch) | |
tree | c1491c574b23d0bbe197a2b3de3814dc033cf890 | |
parent | 5ca59cebc196f55a44c048dab4bbeaa1fe631265 (diff) |
install script
-rwxr-xr-x | install | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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/ |