now with config files

This commit is contained in:
Horscchtey 2021-11-24 00:50:01 +00:00
commit 844578f217
6 changed files with 71 additions and 86 deletions

11
deploy.sh Executable file
View file

@ -0,0 +1,11 @@
#!/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