1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-02 07:47:32 +00:00

remove validate_seafile_data_dir when run index master/worker

This commit is contained in:
lian 2022-07-13 16:44:17 +08:00
parent 3371d5cb5b
commit 401b5c154e
2 changed files with 0 additions and 20 deletions

View File

@ -47,15 +47,6 @@ function check_python_executable() {
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() {
logdir=${TOPDIR}/logs
if ! [[ -d ${logsdir} ]]; then
@ -70,7 +61,6 @@ function prepare_log_dir() {
function before_start() {
check_python_executable;
prepare_log_dir;
validate_seafile_data_dir;
export SEAFILE_CONF_DIR=${default_seafile_data_dir}
export SEAFILE_CENTRAL_CONF_DIR=${central_config_dir}

View File

@ -45,15 +45,6 @@ function check_python_executable() {
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() {
logdir=${TOPDIR}/logs
if ! [[ -d ${logsdir} ]]; then
@ -68,7 +59,6 @@ function prepare_log_dir() {
function before_start() {
check_python_executable;
prepare_log_dir;
validate_seafile_data_dir;
export SEAFILE_CONF_DIR=${default_seafile_data_dir}
export SEAFILE_CENTRAL_CONF_DIR=${central_config_dir}