mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-07 18:13:56 +00:00
remove validate_seafile_data_dir when run index master/worker
This commit is contained in:
parent
3371d5cb5b
commit
401b5c154e
@ -47,15 +47,6 @@ function check_python_executable() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function validate_seafile_data_dir () {
|
|
||||||
if [[ ! -d ${default_seafile_data_dir} ]]; then
|
|
||||||
echo "Error: there is no seafile server data directory."
|
|
||||||
echo "Have you run setup-seafile.sh before this?"
|
|
||||||
echo ""
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function prepare_log_dir() {
|
function prepare_log_dir() {
|
||||||
logdir=${TOPDIR}/logs
|
logdir=${TOPDIR}/logs
|
||||||
if ! [[ -d ${logsdir} ]]; then
|
if ! [[ -d ${logsdir} ]]; then
|
||||||
@ -70,7 +61,6 @@ function prepare_log_dir() {
|
|||||||
function before_start() {
|
function before_start() {
|
||||||
check_python_executable;
|
check_python_executable;
|
||||||
prepare_log_dir;
|
prepare_log_dir;
|
||||||
validate_seafile_data_dir;
|
|
||||||
|
|
||||||
export SEAFILE_CONF_DIR=${default_seafile_data_dir}
|
export SEAFILE_CONF_DIR=${default_seafile_data_dir}
|
||||||
export SEAFILE_CENTRAL_CONF_DIR=${central_config_dir}
|
export SEAFILE_CENTRAL_CONF_DIR=${central_config_dir}
|
||||||
|
@ -45,15 +45,6 @@ function check_python_executable() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function validate_seafile_data_dir () {
|
|
||||||
if [[ ! -d ${default_seafile_data_dir} ]]; then
|
|
||||||
echo "Error: there is no seafile server data directory."
|
|
||||||
echo "Have you run setup-seafile.sh before this?"
|
|
||||||
echo ""
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function prepare_log_dir() {
|
function prepare_log_dir() {
|
||||||
logdir=${TOPDIR}/logs
|
logdir=${TOPDIR}/logs
|
||||||
if ! [[ -d ${logsdir} ]]; then
|
if ! [[ -d ${logsdir} ]]; then
|
||||||
@ -68,7 +59,6 @@ function prepare_log_dir() {
|
|||||||
function before_start() {
|
function before_start() {
|
||||||
check_python_executable;
|
check_python_executable;
|
||||||
prepare_log_dir;
|
prepare_log_dir;
|
||||||
validate_seafile_data_dir;
|
|
||||||
|
|
||||||
export SEAFILE_CONF_DIR=${default_seafile_data_dir}
|
export SEAFILE_CONF_DIR=${default_seafile_data_dir}
|
||||||
export SEAFILE_CENTRAL_CONF_DIR=${central_config_dir}
|
export SEAFILE_CENTRAL_CONF_DIR=${central_config_dir}
|
||||||
|
Loading…
Reference in New Issue
Block a user