jnrmor: make sure default is honored

This commit is contained in:
Helmut K. C. Tessarek 2019-12-17 12:20:55 +01:00
parent 41f85ed71d
commit 457d43b61e
No known key found for this signature in database
GPG Key ID: BE0985349D44DD00

3
jnrmor
View File

@ -237,6 +237,9 @@ debug "Web Clipper port: $CLIPPER_PORT"
# retrieve the IDs of orphaned resources from the database
KEEP=`sqlite3 $DB "select value from settings where key = 'revisionService.ttlDays'"`
if [ -z "$KEEP" ]; then
KEEP=90
fi
if [ "$zhflag" == "1" ]; then
KEEP=0
fi