]> gitweb.fluxo.info Git - hydra.git/commitdiff
Trying to determine wiki location at backup-site (2)
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 9 Mar 2014 23:54:54 +0000 (20:54 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 9 Mar 2014 23:54:54 +0000 (20:54 -0300)
share/hydractl/backup-site

index 1c124aa3c6cabc62fecf116cbcd079d96278c150..225ae1990e9c9e8089f2fd901dab04600f361ce4 100755 (executable)
@@ -41,7 +41,7 @@ if [ "$SITE" == "git" ] || [ "$SITE" == "svn" ]; then
 elif [ "$SITE" == "debian" ]; then
   LOCATION="/var/reprepro"
 elif [ "$SITE" == "wiki" ]; then
-  LOCATION="/var/www/data/pmwiki-*"
+  LOCATION="`ls -1 /var/www/data | grep pmwiki | sort -n | head`"
 else
   LOCATION="$SITES/$SITE"
 fi