blob: d3a6cd180211c9c6506ee78286de1e7e2d1dceb3 (
plain) (
tree)
|
|
config_bwSuite_server() {
# $1: Path to server directory
echo -n "# Writing configuration for bwSuite server..."
echo "vmstore.path = /srv/openslx/nfs" > "$1/config.properties"
echo "db.uri = jdbc:mysql://localhost/sat?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&characterSetResults=utf8&connectionCollation=utf8mb4_unicode_ci" >> "$1/config.properties"
echo "db.username = sat" >> "$1/config.properties"
echo "db.password = %MYSQL_SAT_PASS%" >> "$1/config.properties"
echo "master.address = bwlp-masterserver.ruf.uni-freiburg.de" >> "$1/config.properties"
chown dmsd:images "$1/config.properties"
chmod 0640 "$1/config.properties"
echo "ok."
}
install_bwSuite_server() {
# $1: directory to install server to
echo -n "# Installing server part of bwSuite... "
mkdir -p "$1" 2>/dev/null
mkdir -p "$1/flag"
cp -p "$BASEDIR/static_files/bwLehrpoolSuite_Server.jar" "$1/bwLehrpoolSuite_Server.jar"
chown -R root:root "$1"
chmod -R go-w "$1"
touch "$1/flag/run" # Set run flag right from the start
chown -R dmsd: "$1/flag"
echo "ok."
config_bwSuite_server "$1"
}
|