Probiotics (in bot form) for programming.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。

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