Probiotics (in bot form) for programming.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

22 line
512B

  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. # BOOTSTRAP
  8. cd $DIR/bootstrap && ./bootstrap.sh || exit 1
  9. cd ..;
  10. [ "$BOOTSTRAP_ONLY" = 1 ] && exit 0
  11. # INSTALL
  12. mkdir -p $TARGET
  13. useradd probotic -r -s /sbin/nologin -d $TARGET
  14. install -v -g probotic -o probotic -m 744 \
  15. $DIR/bootstrap/probotic_data.sqlite probotic \
  16. $TARGET
  17. chown probotic:probotic $TARGET -R