summaryrefslogtreecommitdiff
path: root/config/install
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-05-11 10:15:53 +0200
committerpks <pks@pks.rocks>2021-05-11 10:15:53 +0200
commitef85e805eac28c54c5c342b7d7a713500b286c16 (patch)
tree8e0638f703a1b154779e438ac859761c8fcc6d1b /config/install
parentd94c998eb694fad8f81f07dee6e70b80dc5dbea7 (diff)
fix install script
Diffstat (limited to 'config/install')
-rwxr-xr-xconfig/install8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/install b/config/install
index 6252853..9891c58 100755
--- a/config/install
+++ b/config/install
@@ -1,11 +1,11 @@
#!/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 $(pwd)/weather-logger-receiver.yaml /etc/
+sudo ln -s $(pwd)/systemd/weather-logger-receiver.service /etc/systemd/system/
sudo systemctl daemon-reload
-sudo ln -s config/syslog/50weather-logger-receiver.conf /etc/rsyslog.d/
+sudo ln -s $(pwd)/syslog/50weather-logger-receiver.conf /etc/rsyslog.d/
sudo systemctl restart rsyslog
-sudo ln -s config/logrotate/weather-logger-receiver /etc/logrotate.d/
+sudo ln -s $(pwd)/logrotate/weather-logger-receiver /etc/logrotate.d/
sudo systemctl restart logrotate
sudo useradd -M -s /bin/bash -G dialout weather-logger