From c0e252d53b68e90b4cd26ad2ed67882db2d51459 Mon Sep 17 00:00:00 2001 From: Paul Pazderski Date: Sun, 27 Apr 2025 18:40:57 +0200 Subject: [PATCH] fix typo in seahub scripts --- scripts/reset-admin.sh | 2 +- scripts/run_index_master.sh | 2 +- scripts/run_index_worker.sh | 2 +- scripts/seafile-background-tasks.sh | 2 +- scripts/seahub.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/reset-admin.sh b/scripts/reset-admin.sh index d4af19058a..5ac060595f 100755 --- a/scripts/reset-admin.sh +++ b/scripts/reset-admin.sh @@ -45,7 +45,7 @@ function validate_seafile_data_dir () { function prepare_seahub_log_dir() { logdir=${TOPDIR}/logs - if ! [[ -d ${logsdir} ]]; then + if ! [[ -d ${logdir} ]]; then if ! mkdir -p "${logdir}"; then echo "ERROR: failed to create logs dir \"${logdir}\"" exit 1 diff --git a/scripts/run_index_master.sh b/scripts/run_index_master.sh index 25cad4def3..43db100017 100755 --- a/scripts/run_index_master.sh +++ b/scripts/run_index_master.sh @@ -48,7 +48,7 @@ function check_python_executable() { function prepare_log_dir() { logdir=${TOPDIR}/logs - if ! [[ -d ${logsdir} ]]; then + if ! [[ -d ${logdir} ]]; then if ! mkdir -p "${logdir}"; then echo "ERROR: failed to create logs dir \"${logdir}\"" exit 1 diff --git a/scripts/run_index_worker.sh b/scripts/run_index_worker.sh index 53d7823fe7..c1cb94b30d 100755 --- a/scripts/run_index_worker.sh +++ b/scripts/run_index_worker.sh @@ -46,7 +46,7 @@ function check_python_executable() { function prepare_log_dir() { logdir=${TOPDIR}/logs - if ! [[ -d ${logsdir} ]]; then + if ! [[ -d ${logdir} ]]; then if ! mkdir -p "${logdir}"; then echo "ERROR: failed to create logs dir \"${logdir}\"" exit 1 diff --git a/scripts/seafile-background-tasks.sh b/scripts/seafile-background-tasks.sh index 27baeee3c4..aacade8faa 100755 --- a/scripts/seafile-background-tasks.sh +++ b/scripts/seafile-background-tasks.sh @@ -87,7 +87,7 @@ function warning_if_seafile_not_running () { } function prepare_log_dir() { - if ! [[ -d ${logsdir} ]]; then + if ! [[ -d ${logdir} ]]; then if ! mkdir -p "${logdir}"; then echo "ERROR: failed to create logs dir \"${logdir}\"" exit 1 diff --git a/scripts/seahub.sh b/scripts/seahub.sh index 48e6b58b9d..2c6bb68cb5 100755 --- a/scripts/seahub.sh +++ b/scripts/seahub.sh @@ -134,7 +134,7 @@ function warning_if_seafile_not_running () { function prepare_seahub_log_dir() { logdir=${TOPDIR}/logs - if ! [[ -d ${logsdir} ]]; then + if ! [[ -d ${logdir} ]]; then if ! mkdir -p "${logdir}"; then echo "ERROR: failed to create logs dir \"${logdir}\"" exit 1