Pass arguments to seaf-gc

This will allow users to run seaf-gc with parameters like ``-D`` or ``-r``
This commit is contained in:
fakuivan 2018-12-03 13:37:23 -03:00 committed by Sven
parent bce6d85c2e
commit 0e865b8900

View file

@ -18,7 +18,7 @@ fi
# Do it
(
set +e
$SEAFILE_DIR/seaf-gc.sh | tee -a /var/log/gc.log
$SEAFILE_DIR/seaf-gc.sh "$@" | tee -a /var/log/gc.log
# We want to presevent the exit code of seaf-gc.sh
exit "${PIPESTATUS[0]}"
)