Skip to content

Commit

Permalink
fixed reset-admin.sh script
Browse files Browse the repository at this point in the history
forgot to export SEAFILE_CENTRAL_CONF_DIR
  • Loading branch information
lins05 committed Nov 2, 2015
1 parent 06b3b04 commit fe61a09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/reset-admin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
exec "$PYTHON" "$manage_py" createsuperuser

0 comments on commit fe61a09

Please sign in to comment.