Newer
Older
admin-tools / autoupdate.sh
Paul Staroch on 18 Apr 574 bytes added autoupdate for rss-bridge
#!/bin/bash

git_pull() {
	if [ ! -e "$1" ]; then
		return
	fi

	echo ""
	date
	echo "Updating $1..."
	cd "$1"
	git pull
	echo ""
}

git_pull /var/www/default/web/rss >> /var/log/autoupdate.log 2>&1
git_pull /opt/munin-contrib >> /var/log/autoupdate.log 2>&1 
git_pull /var/www/mail/roundcube/plugins/carddav/ >> /var/log/autoupdate.log 2>&1 
git_pull /var/www/default/web/rss/plugins.local/tumblr_gdpr >> /var/log/autoupdate.log 2>&1
git_pull /opt/nextcloud-munin-py >> /var/log/autoupdate.log 2>&1
git_pull /var/www/default/web/rss-bridge >> /var/log/autoupdate.log 2>&1