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

Peter Palfrader commited on 2012-02-17 18:15:47
Zeige 1 geänderte Dateien mit 4 Einfügungen und 3 Löschungen.

... ...
@@ -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'
41 42