aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2019-09-16 08:03:43 -0700
committerAlec Warner <antarus@gentoo.org>2019-09-16 08:03:43 -0700
commitc77d0def6288162928f79a20d2483117ea9f92d2 (patch)
treeb0af489b25d6e2c39fa1632cc175d1a4336e01ef
parentKeep the footer at the bottom of the page (diff)
downloadpackages-5-c77d0def6288162928f79a20d2483117ea9f92d2.tar.gz
packages-5-c77d0def6288162928f79a20d2483117ea9f92d2.tar.bz2
packages-5-c77d0def6288162928f79a20d2483117ea9f92d2.zip
Disable sync in production.
This should allow RAILS_ENV=development to work for docker. In production the sync is handled by puppet and the user running update-all.sh doens't have permission to sync. Signed-off-by: Alec Warner <antarus@gentoo.org>
-rwxr-xr-xbin/update-all.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/update-all.sh b/bin/update-all.sh
index 82f8751..221ed59 100755
--- a/bin/update-all.sh
+++ b/bin/update-all.sh
@@ -1,6 +1,8 @@
#!/bin/bash
-emerge --sync
+if [[ ${1} != "production" ]];
+ emerge --sync
+fi
if [[ ! -d /mnt/packages-tree/gentoo/ ]]; then
cd /mnt/packages-tree || exit 1