From fe61a096beb0166cd6ac63cd5b4f79c75ac643fa Mon Sep 17 00:00:00 2001 From: Shuai Lin Date: Mon, 2 Nov 2015 09:43:49 +0800 Subject: [PATCH] fixed reset-admin.sh script forgot to export SEAFILE_CENTRAL_CONF_DIR --- scripts/reset-admin.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/reset-admin.sh b/scripts/reset-admin.sh index afc7991ec..4759d0417 100755 --- a/scripts/reset-admin.sh +++ b/scripts/reset-admin.sh @@ -4,6 +4,7 @@ SCRIPT=$(readlink -f "$0") INSTALLPATH=$(dirname "${SCRIPT}") TOPDIR=$(dirname "${INSTALLPATH}") default_ccnet_conf_dir=${TOPDIR}/ccnet +central_config_dir=${TOPDIR}/conf function check_python_executable() { if [[ "$PYTHON" != "" && -x $PYTHON ]]; then @@ -48,8 +49,9 @@ read_seafile_data_dir; export CCNET_CONF_DIR=${default_ccnet_conf_dir} export SEAFILE_CONF_DIR=${seafile_data_dir} +export SEAFILE_CENTRAL_CONF_DIR=${central_config_dir} export PYTHONPATH=${INSTALLPATH}/seafile/lib/python2.6/site-packages:${INSTALLPATH}/seafile/lib64/python2.6/site-packages:${INSTALLPATH}/seahub/thirdpart:$PYTHONPATH export PYTHONPATH=${INSTALLPATH}/seafile/lib/python2.7/site-packages:${INSTALLPATH}/seafile/lib64/python2.7/site-packages:$PYTHONPATH manage_py=${INSTALLPATH}/seahub/manage.py -exec "$PYTHON" "$manage_py" createsuperuser \ No newline at end of file +exec "$PYTHON" "$manage_py" createsuperuser