1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-30 21:49:38 +00:00

Merge pull request #508 from haiwen/fix-seahub-log-dir

fix seahub log dir in reset admin
This commit is contained in:
Daniel Pan 2021-10-21 18:27:16 +08:00 committed by GitHub
commit de3496bb33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,8 +41,20 @@ function validate_seafile_data_dir () {
fi
}
function prepare_seahub_log_dir() {
logdir=${TOPDIR}/logs
if ! [[ -d ${logsdir} ]]; then
if ! mkdir -p "${logdir}"; then
echo "ERROR: failed to create logs dir \"${logdir}\""
exit 1
fi
fi
export SEAHUB_LOG_DIR=${logdir}
}
check_python_executable;
validate_seafile_data_dir;
prepare_seahub_log_dir;
export CCNET_CONF_DIR=${default_ccnet_conf_dir}
export SEAFILE_CONF_DIR=${default_seafile_data_dir}