From 97ee70aafa781d36b47611e609e031a9358488a0 Mon Sep 17 00:00:00 2001 From: pks Date: Tue, 11 May 2021 07:20:25 +0200 Subject: mv --- config/install | 11 +++++++++++ config/requirements.txt | 3 +++ install | 11 ----------- requirements.txt | 3 --- 4 files changed, 14 insertions(+), 14 deletions(-) create mode 100755 config/install create mode 100644 config/requirements.txt delete mode 100755 install delete mode 100644 requirements.txt 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/ diff --git a/config/requirements.txt b/config/requirements.txt new file mode 100644 index 0000000..752aa56 --- /dev/null +++ b/config/requirements.txt @@ -0,0 +1,3 @@ +pyRFXtrx==0.26.1 +pyserial==3.5 +PyYAML==5.4.1 diff --git a/install b/install deleted file mode 100755 index 0977113..0000000 --- a/install +++ /dev/null @@ -1,11 +0,0 @@ -#!/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/ diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 752aa56..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -pyRFXtrx==0.26.1 -pyserial==3.5 -PyYAML==5.4.1 -- cgit v1.2.3