aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/trac-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl/trac-upgrade')
-rwxr-xr-xshare/hydractl/trac-upgrade5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/hydractl/trac-upgrade b/share/hydractl/trac-upgrade
index 06a6a69..31e8f52 100755
--- a/share/hydractl/trac-upgrade
+++ b/share/hydractl/trac-upgrade
@@ -23,6 +23,11 @@ hydra_config_load
# Parameters
BASE="/var/sites"
+# Check for sites
+if [ ! -d "$BASE" ]; then
+ exit
+fi
+
# Upgrade
for instance in `find $BASE -maxdepth 2 -name trac`; do
(