Probiotics (in bot form) for programming.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Ce dépôt est archivé. Vous pouvez voir les fichiers et le cloner, mais vous ne pouvez pas pousser ni ouvrir de ticket/demande d'ajout.

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