summaryrefslogtreecommitdiff
blob: dbf053428f61e66dca34e3ae3588446baa82e75b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

die() {
	echo "#####"
	echo $1
	echo "#####"
	exit 1
}

if [ $1 = "install" ]; then
   sqlite ${MY_INSTALLDIR}/storage/horde.db < ${MY_INSTALLDIR}/scripts/sql/groupware.sql
   chown ${VHOST_SERVER_UID}\:${VHOST_SERVER_GID} ${MY_INSTALLDIR}/storage/horde.db ${MY_INSTALLDIR}/{log,tmp,storage}
elif [ $1 = "clean" ]; then
	echo $1
fi