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.
|
- #!/bin/sh
-
- echo "./uninstall.sh will destroy to whatever TARGET is set to, be careful!"
-
- # VARIABLES AND PATH
- TARGET=${TARGET-/opt/probotic}
- DIR=$(dirname $(readlink -f "$0"))
- cd $DIR
-
- # BOOTSTRAP
- cd $DIR/bootstrap && ./bootstrap.sh || exit 1
- cd ..;
- [ "$BOOTSTRAP_ONLY" = 1 ] && exit 0
-
- # INSTALL
- mkdir -p $TARGET
- useradd probotic -r -s /sbin/nologin -d $TARGET
- install -v -g probotic -o probotic -m 744 \
- $DIR/bootstrap/probotic_data.sqlite probotic \
- $TARGET
- chown probotic:probotic $TARGET -R
|