mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-08-31 15:11:08 +00:00
Merge pull request #508 from haiwen/fix-seahub-log-dir
fix seahub log dir in reset admin
This commit is contained in:
@@ -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}
|
||||
|
Reference in New Issue
Block a user