Browse code

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

Peter Palfrader authored on17/02/2012 18:15:47
Showing1 changed files
... ...
@@ -32,9 +32,10 @@ rsync \
32 32
 	-Prvz --delete . www-master.torproject.org:/srv/www-master.torproject.org/htdocs
33 33
 
34 34
 echo "Forcing mirror update"
35
-ssh -t www-master.torproject.org '
35
+ssh www-master.torproject.org '
36 36
 	(
37
-	 find /srv/www-master.torproject.org/htdocs ! -perm +444 -print0 | xargs -0 --no-run-if-empty chmod -v a+r ||
38
-	 echo 2>&1 "There are unreadable files in /srv/www-master.torproject.org/htdocs, not triggering mirror run."
37
+	 find /srv/www-master.torproject.org/htdocs ! -perm -444 -print0 | xargs -0 --no-run-if-empty chmod -v a+r ||
38
+	 ( echo 2>&1 "There are unreadable files in /srv/www-master.torproject.org/htdocs, not triggering mirror run."; exit 1)
39 39
 	) &&
40
+	echo "Triggering mirror run" &&
40 41
 	/home/mirroradm/bin/trigger-mirrors'