summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-04 13:48:44 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-04 13:48:44 +0200
commitd4134b4ffcabcc9e3c16c8656e9838dc3c136403 (patch)
treea77d59e556fee380d5294dece1dd10e457d1b5b4
parent0c65224569c5682b679093068c0dfb29a6fe027e (diff)
downloadjenkins.debian.net-d4134b4ffcabcc9e3c16c8656e9838dc3c136403.tar.xz
reproducible: only create db on jenkins
-rwxr-xr-xbin/reproducible_common.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index e7e4a373..569cb56d 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -23,7 +23,7 @@ if [ -f $PACKAGES_DB ] && [ -f $INIT ] ; then
exit 1
fi
fi
-elif [ ! -f ${PACKAGES_DB} ] ; then
+elif [ ! -f ${PACKAGES_DB} ] && [ "$HOSTNAME" = "jenkins" ] ; then
echo "Warning: $PACKAGES_DB doesn't exist, creating it now."
/srv/jenkins/bin/reproducible_db_maintenance.py
# 60 seconds timeout when trying to get a lock