Probiotics (in bot form) for programming.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Dieses Repo ist archiviert. Du kannst Dateien sehen und es klonen, kannst aber nicht pushen oder Issues/Pull-Requests öffnen.

22 Zeilen
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