summaryrefslogtreecommitdiff
path: root/scripts/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install.sh')
-rwxr-xr-xscripts/install.sh9
1 files changed, 9 insertions, 0 deletions
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