aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/update-all.sh')
-rwxr-xr-xbin/update-all.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/update-all.sh b/bin/update-all.sh
index efa9955..82f8751 100755
--- a/bin/update-all.sh
+++ b/bin/update-all.sh
@@ -1,3 +1,7 @@
+#!/bin/bash
+
+emerge --sync
+
if [[ ! -d /mnt/packages-tree/gentoo/ ]]; then
cd /mnt/packages-tree || exit 1
git clone https://anongit.gentoo.org/git/repo/gentoo.git
@@ -10,4 +14,4 @@ fi
/var/www/packages.gentoo.org/htdocs/bin/update-use.sh
cd /var/www/packages.gentoo.org/htdocs || exit 1
-bundle exec rake kkuleomi:update:all RAILS_ENV=production &>/dev/null
+bundle exec rake kkuleomi:update:all RAILS_ENV=${1:-development} &>/dev/null