11 lines
220 B
Bash
Executable file
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
|