Remove cron in favor of tailing the log as a keep-alive method

This commit is contained in:
flow.gunso
2020-01-06 16:13:35 +01:00
parent db9546f71b
commit 4b18dc7d6a
2 changed files with 4 additions and 3 deletions

View File

@@ -81,5 +81,3 @@ su - $UNAME << EO
export UNAME=$UNAME
/bin/bash /home/seafuser/entrypoint.sh
EO
cron -f

View File

@@ -44,4 +44,7 @@ test $SEAF_2FA_SECRET && cmd+=" -a $(oathlib --base32 --totp $SEAF_2FA_SECRET)"
test $SEAF_LIBRARY_PASSWORD && cmd+=" -e $SEAF_LIBRARY_PASSWORD"
# Run it.
if ! eval $cmd; then echo "Failed to sync"; exit 1; fi
if ! eval $cmd; then echo "Failed to sync"; exit 1; fi
# Continously print the log.
tail -f ~/.ccnet/logs/seafile.log