mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
remove set -e and exit
This commit is contained in:
parent
6daa847df8
commit
f2726d0c3e
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
|
||||||
source /scripts/utils.sh
|
source /scripts/utils.sh
|
||||||
SEAFILE_DIR=/opt/seafile/seafile-server-latest
|
SEAFILE_DIR=/opt/seafile/seafile-server-latest
|
||||||
|
|
||||||
|
@ -13,11 +12,7 @@ else
|
||||||
echo "Seafile Pro: Perform online garbage collection."
|
echo "Seafile Pro: Perform online garbage collection."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
(
|
$SEAFILE_DIR/seaf-gc.sh "$@"
|
||||||
set +e
|
|
||||||
$SEAFILE_DIR/seaf-gc.sh "$@" | tee -a /opt/seafile/logs/gc.log
|
|
||||||
exit "${PIPESTATUS[0]}"
|
|
||||||
) gc_exit_code=$?
|
|
||||||
|
|
||||||
if [[ $SEAFILE_SERVER != *"pro"* ]]; then
|
if [[ $SEAFILE_SERVER != *"pro"* ]]; then
|
||||||
echo "Seafile CE: Offline garbage collection completed. Starting Seafile."
|
echo "Seafile CE: Offline garbage collection completed. Starting Seafile."
|
||||||
|
@ -25,4 +20,3 @@ if [[ $SEAFILE_SERVER != *"pro"* ]]; then
|
||||||
$SEAFILE_DIR/seafile.sh start
|
$SEAFILE_DIR/seafile.sh start
|
||||||
start_socat
|
start_socat
|
||||||
fi
|
fi
|
||||||
exit $gc_exit_code
|
|
||||||
|
|
Loading…
Reference in a new issue