Probiotics (in bot form) for programming.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

21 lines
508B

  1. #!/bin/sh
  2. echo "./uninstall.sh will destroy to whatever TARGET is set to, be careful!"
  3. # VARIABLES AND PATH
  4. TARGET=${TARGET-/opt/probotic}
  5. DIR=$(dirname $(readlink -f "$0"))
  6. cd $DIR
  7. # BUILD & BOOTSTRAP
  8. make -C $DIR DEBUG=0 NVULN=1 || exit 1
  9. $DIR/bootstrap/bootstrap.sh || exit 1
  10. # INSTALL
  11. mkdir -p $TARGET
  12. useradd probotic -r -s /sbin/nologin -d $TARGET
  13. install -v -g probotic -o probotic -m 744 \
  14. $DIR/bootstrap/probotic_data.sqlite probotic \
  15. $TARGET
  16. chown probotic:probotic $TARGET -R