24 lines
665 B
Bash
24 lines
665 B
Bash
|
#!/bin/sh
|
||
|
#
|
||
|
# example start script to run a local cryptobox webserver
|
||
|
#
|
||
|
# we set some parameters to make it possible to run it without an existing cryptobox installation
|
||
|
#
|
||
|
|
||
|
BIN_DIR=$(cd "$(dirname $0)"; pwd)
|
||
|
|
||
|
## add the local python directory to the search path
|
||
|
export PYTHONPATH="$BIN_DIR/../src"
|
||
|
## disable ssl detection
|
||
|
#export HTTPS=1
|
||
|
|
||
|
## create necessary directories
|
||
|
mkdir -p "$BIN_DIR/../ttt/mnt"
|
||
|
mkdir -p "$BIN_DIR/../ttt/settings"
|
||
|
|
||
|
cd "$BIN_DIR"
|
||
|
|
||
|
## run the webserver
|
||
|
"$BIN_DIR/CryptoBoxWebserver" --config="$BIN_DIR/cryptobox.conf" --pidfile=/tmp/cryptoboxwebserver.pid --logfile=/tmp/cryptoboxwebser.log --port=8080 --datadir="$BIN_DIR/../www-data" "$@"
|
||
|
|