Probiotics (in bot form) for programming.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Este repositorio está archivado. Puede ver los archivos y clonarlo, pero no puede subir cambios o reportar incidencias ni pedir Pull Requests.

22 líneas
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