boddle/deploy.sh
2021-11-24 00:50:01 +00:00

11 lines
220 B
Bash
Executable file

#!/bin/bash
if ! [[ "$UID" -eq 0 ]] ; then
echo "Please run as sudo $0 $*" >&2
exit 1
fi
declare -r target="${1:-/var/lib/boddle}"
install -o boddle -s -m 0500 -T bot "${target}/executable"
systemctl restart boddle