Created
December 4, 2013 18:12
-
-
Save neingeist/7792555 to your computer and use it in GitHub Desktop.
mark old articles in owncloud news as read
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# mark old articles in owncloud news as read. | |
DAYS=14 | |
sqlite3 /var/www/owncloud/data/owncloud.db "update oc_news_items set status=0 where status=2 and pub_date<cast(strftime('%s','now', '-$DAYS days') as integer);" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment