Regenerate feeds after upgrades

This commit is contained in:
Bob Mottram 2018-05-19 22:33:02 +01:00
parent ef52dc23b7
commit 61f1ed2e1e
1 changed files with 4 additions and 0 deletions

View File

@ -193,6 +193,10 @@ function upgrade_smolrss {
# update to the next commit
set_repo_commit "/var/www/$SMOLRSS_DOMAIN_NAME/htdocs" "smolrss commit" "$SMOLRSS_COMMIT" "$SMOLRSS_REPO"
cd "/var/www/$SMOLRSS_DOMAIN_NAME/htdocs" || return
./create_feeds feeds.txt > feeds.xml
chown -R www-data:www-data "/var/www/${SMOLRSS_DOMAIN_NAME}/htdocs"
}