install_bwSuite_server() { # $1: directory to install server to echo "# Installing server part of bwSuite... " mkdir -p "$1" || perror "Cannot create $1" tar -x -C /opt/dmsd -f "$BASEDIR/static_files/dozmod.tar.gz" \ || perror "Could not extract dmsd" chown -R root:root "$1" chmod -R go-w "$1" install_files "dmsd" chown root:images "$1/config.properties" chmod 0640 "$1/config.properties" }