Skip to content

Instantly share code, notes, and snippets.

@neingeist
Created December 4, 2013 18:12
Show Gist options
  • Save neingeist/7792555 to your computer and use it in GitHub Desktop.
Save neingeist/7792555 to your computer and use it in GitHub Desktop.
mark old articles in owncloud news as read
#!/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