#!/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