diff options
author | pks <pks@pks.rocks> | 2022-11-22 22:11:11 +0100 |
---|---|---|
committer | pks <pks@pks.rocks> | 2022-11-22 22:11:11 +0100 |
commit | d8f77f4312f713443d5b369432ab4b0413bfb8ec (patch) | |
tree | 92496712fc0ef27efa4872fb1868cdc879a3f582 /scripts | |
parent | e5b0a6660a898f6b60f11d6c3915fb813d06d5f8 (diff) |
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install.sh | 9 |
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 |