Also, add new convenience function mire_and_deleuze.
+#
+# Helper functions
+#
+
+# Run a command on both mire and deleuze; assumes that no escaping is
+# needed.
+function mire_and_deleuze() {
+ $*
+ ssh mire.hcoop.net $*
+}
vos syncvldb deleuze
# refresh volume location cache (takes ~2hrs otherwise)
vos syncvldb deleuze
# refresh volume location cache (takes ~2hrs otherwise)
-fs checkvolumes
-ssh mire.hcoop.net fs checkvolumes
+mire_and_deleuze fs checkvolumes
-# Files and directories on deleuze
+# Non-AFS files and directories
#
# Make per-user apache DAV lock directory -- the directory must be
# both user and group-writable, which is silly.
#
# Make per-user apache DAV lock directory -- the directory must be
# both user and group-writable, which is silly.
-sudo mkdir -p /var/lock/apache2/dav/$USER
-sudo chown $USER:www-data /var/lock/apache2/dav/$USER
-sudo chmod ug=rwx,o= /var/lock/apache2/dav/$USER
+mire_and_deleuze sudo mkdir -p /var/lock/apache2/dav/$USER
+mire_and_deleuze sudo chown $USER:www-data /var/lock/apache2/dav/$USER
+mire_and_deleuze sudo chmod ug=rwx,o= /var/lock/apache2/dav/$USER