#!/bin/sh
    rm -rf /opt/tmp/seahub_cache
    if [ ! -d /opt/share/seafile/seafile-data ]
    then
	echo "*** Installation completed, running configuration script..."
	/opt/share/seafile/seafile-server/setup-seafile.sh
    else
	echo "*** It seems you are upgrading from an older version."
	echo "*** If so, please run the appropriate upgrade scripts before using the new version of Seafile."
	echo "*** For more information, please read http://manual.seafile.com/"
    fi
