mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-25 06:25:13 +00:00
rm validate_ccnet_conf_dir
This commit is contained in:
@@ -20,15 +20,6 @@ function usage () {
|
|||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
function validate_ccnet_conf_dir () {
|
|
||||||
if [[ ! -d ${default_ccnet_conf_dir} ]]; then
|
|
||||||
echo "Error: there is no ccnet config directory."
|
|
||||||
echo "Have you run setup-seafile.sh before this?"
|
|
||||||
echo ""
|
|
||||||
exit -1;
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function validate_seafile_data_dir () {
|
function validate_seafile_data_dir () {
|
||||||
if [[ ! -d ${default_seafile_data_dir} ]]; then
|
if [[ ! -d ${default_seafile_data_dir} ]]; then
|
||||||
echo "Error: there is no seafile server data directory."
|
echo "Error: there is no seafile server data directory."
|
||||||
@@ -39,7 +30,6 @@ function validate_seafile_data_dir () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function run_seaf_fsck () {
|
function run_seaf_fsck () {
|
||||||
validate_ccnet_conf_dir;
|
|
||||||
validate_seafile_data_dir;
|
validate_seafile_data_dir;
|
||||||
|
|
||||||
echo "Starting seaf-fsck, please wait ..."
|
echo "Starting seaf-fsck, please wait ..."
|
||||||
|
@@ -36,15 +36,6 @@ if [[ $1 == "stop" && $# != 1 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function validate_ccnet_conf_dir () {
|
|
||||||
if [[ ! -d ${default_ccnet_conf_dir} ]]; then
|
|
||||||
echo "Error: there is no ccnet config directory."
|
|
||||||
echo "Have you run setup-seafile.sh before this?"
|
|
||||||
echo ""
|
|
||||||
exit -1;
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function validate_seafile_data_dir () {
|
function validate_seafile_data_dir () {
|
||||||
if [[ ! -d ${default_seafile_data_dir} ]]; then
|
if [[ ! -d ${default_seafile_data_dir} ]]; then
|
||||||
echo "Error: there is no seafile server data directory."
|
echo "Error: there is no seafile server data directory."
|
||||||
@@ -73,7 +64,6 @@ function warning_if_seafile_not_running () {
|
|||||||
function start_seaf_fuse () {
|
function start_seaf_fuse () {
|
||||||
validate_already_running;
|
validate_already_running;
|
||||||
warning_if_seafile_not_running;
|
warning_if_seafile_not_running;
|
||||||
validate_ccnet_conf_dir;
|
|
||||||
validate_seafile_data_dir;
|
validate_seafile_data_dir;
|
||||||
|
|
||||||
echo "Starting seaf-fuse, please wait ..."
|
echo "Starting seaf-fuse, please wait ..."
|
||||||
|
@@ -22,15 +22,6 @@ function usage () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function validate_ccnet_conf_dir () {
|
|
||||||
if [[ ! -d ${default_ccnet_conf_dir} ]]; then
|
|
||||||
echo "Error: there is no ccnet config directory."
|
|
||||||
echo "Have you run setup-seafile.sh before this?"
|
|
||||||
echo ""
|
|
||||||
exit -1;
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function validate_seafile_data_dir () {
|
function validate_seafile_data_dir () {
|
||||||
if [[ ! -d ${default_seafile_data_dir} ]]; then
|
if [[ ! -d ${default_seafile_data_dir} ]]; then
|
||||||
echo "Error: there is no seafile server data directory."
|
echo "Error: there is no seafile server data directory."
|
||||||
@@ -61,7 +52,6 @@ function validate_already_running () {
|
|||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_component_running "ccnet-server" "ccnet-server -c ${default_ccnet_conf_dir}"
|
|
||||||
check_component_running "seaf-server" "seaf-server -c ${default_ccnet_conf_dir}"
|
check_component_running "seaf-server" "seaf-server -c ${default_ccnet_conf_dir}"
|
||||||
check_component_running "fileserver" "fileserver -c ${default_ccnet_conf_dir}"
|
check_component_running "fileserver" "fileserver -c ${default_ccnet_conf_dir}"
|
||||||
check_component_running "seafdav" "wsgidav.server.server_cli"
|
check_component_running "seafdav" "wsgidav.server.server_cli"
|
||||||
@@ -69,7 +59,6 @@ function validate_already_running () {
|
|||||||
|
|
||||||
function run_seaf_gc () {
|
function run_seaf_gc () {
|
||||||
validate_already_running;
|
validate_already_running;
|
||||||
validate_ccnet_conf_dir;
|
|
||||||
validate_seafile_data_dir;
|
validate_seafile_data_dir;
|
||||||
|
|
||||||
echo "Starting seafserv-gc, please wait ..."
|
echo "Starting seafserv-gc, please wait ..."
|
||||||
|
@@ -48,15 +48,6 @@ function validate_running_user () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function validate_ccnet_conf_dir () {
|
|
||||||
if [[ ! -d ${default_ccnet_conf_dir} ]]; then
|
|
||||||
echo "Error: there is no ccnet config directory."
|
|
||||||
echo "Have you run setup-seafile.sh before this?"
|
|
||||||
echo ""
|
|
||||||
exit -1;
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function validate_central_conf_dir () {
|
function validate_central_conf_dir () {
|
||||||
if [[ ! -d ${central_config_dir} ]]; then
|
if [[ ! -d ${central_config_dir} ]]; then
|
||||||
echo "Error: there is no conf/ directory."
|
echo "Error: there is no conf/ directory."
|
||||||
@@ -104,7 +95,6 @@ function validate_already_running () {
|
|||||||
function start_seafile_server () {
|
function start_seafile_server () {
|
||||||
validate_already_running;
|
validate_already_running;
|
||||||
validate_central_conf_dir;
|
validate_central_conf_dir;
|
||||||
validate_ccnet_conf_dir;
|
|
||||||
validate_seafile_data_dir;
|
validate_seafile_data_dir;
|
||||||
validate_running_user;
|
validate_running_user;
|
||||||
|
|
||||||
|
@@ -73,15 +73,6 @@ function check_python_executable() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function validate_ccnet_conf_dir () {
|
|
||||||
if [[ ! -d ${default_ccnet_conf_dir} ]]; then
|
|
||||||
echo "Error: there is no ccnet config directory."
|
|
||||||
echo "Have you run setup-seafile.sh before this?"
|
|
||||||
echo ""
|
|
||||||
exit -1;
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function validate_seafile_data_dir () {
|
function validate_seafile_data_dir () {
|
||||||
if [[ ! -d ${default_seafile_data_dir} ]]; then
|
if [[ ! -d ${default_seafile_data_dir} ]]; then
|
||||||
echo "Error: there is no seafile server data directory."
|
echo "Error: there is no seafile server data directory."
|
||||||
@@ -198,7 +189,6 @@ function start_seahub_fastcgi () {
|
|||||||
|
|
||||||
function prepare_env() {
|
function prepare_env() {
|
||||||
check_python_executable;
|
check_python_executable;
|
||||||
validate_ccnet_conf_dir;
|
|
||||||
validate_seafile_data_dir;
|
validate_seafile_data_dir;
|
||||||
|
|
||||||
if [[ -z "$LANG" ]]; then
|
if [[ -z "$LANG" ]]; then
|
||||||
|
Reference in New Issue
Block a user