From d8f77f4312f713443d5b369432ab4b0413bfb8ec Mon Sep 17 00:00:00 2001 From: pks Date: Tue, 22 Nov 2022 22:11:11 +0100 Subject: 2022-11-22 --- scripts/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/install.sh (limited to 'scripts') diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100755 index 0000000..1f28629 --- /dev/null +++ b/scripts/install.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env zsh + +sudo useradd -M -s /bin/bash power-logger +sudo mkdir -p /usr/local/share/power_logger +sudo mkdir -p /var/log/power_logger +sudo mkdir -p /run/power_logger +sudo chown -R power-logger:power-logger /usr/local/share/power_logger /var/log/power_logger /run/power_logger +sudo chmod 775 /usr/local/share/power_logger /var/log/power_logger /run/power_logger +gem install --install-dir=/usr/local/lib/ruby/2.5.0/ --bindir=/usr/local/bin/ process sqlite3 -- cgit v1.2.3