Commit f366190d authored by Peter Palfrader's avatar Peter Palfrader
Browse files

publish: Fix find logic, and we do not need a tty

parent 0ee53711
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -32,9 +32,10 @@ rsync \
	-Prvz --delete . www-master.torproject.org:/srv/www-master.torproject.org/htdocs

echo "Forcing mirror update"
ssh -t www-master.torproject.org '
ssh www-master.torproject.org '
	(
	 find /srv/www-master.torproject.org/htdocs ! -perm +444 -print0 | xargs -0 --no-run-if-empty chmod -v a+r ||
	 echo 2>&1 "There are unreadable files in /srv/www-master.torproject.org/htdocs, not triggering mirror run."
	 find /srv/www-master.torproject.org/htdocs ! -perm -444 -print0 | xargs -0 --no-run-if-empty chmod -v a+r ||
	 ( echo 2>&1 "There are unreadable files in /srv/www-master.torproject.org/htdocs, not triggering mirror run."; exit 1)
	) &&
	echo "Triggering mirror run" &&
	/home/mirroradm/bin/trigger-mirrors'