This repository has been archived on 2024-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
probotic/install.sh

14 lines
470 B
Bash
Raw Normal View History

2023-08-04 11:13:47 -04:00
#!/bin/sh
DIR=$(dirname $(readlink -f "$0"))
cd $DIR
2023-08-06 23:05:59 -04:00
[ ! -e $DIR/probotic ] && make DEBUG=0 NVULN=1 || return 1
2023-08-04 11:13:47 -04:00
# run bootstrapper
[ ! -e $DIR/bootstrap/ ] && $DIR/bootstrap/bootstrap.sh || return 1
# generate directories and install
TARGET=${TARGET-/opt/probotic}
useradd probotic -r -s /sbin/nologin -d $TARGET
mkdir -p $TARGET
install -g probotic -o probotic -m 744 \
$DIR/bootstrap/probotic_data.sqlite probotic -v $TARGET
chown probotic:probotic $TARGET -R