summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-01 10:23:30 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-01 10:23:30 +0200
commit27d6da4d7114dbc2c0d0c8a193225826d4f4e122 (patch)
treedccf56903e7c7dccfa31e5e66f1a492949bdefd8
parent5a06f8714da692b34c985e94d524bf9fc390e491 (diff)
downloadjenkins.debian.net-27d6da4d7114dbc2c0d0c8a193225826d4f4e122.tar.xz
deploy the right configs to the right hosts. make sure holger keeps sudo. install pigz needed for default pbuilder config
-rwxr-xr-xupdate_jdn.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 70e30a85..d1da6305 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -32,7 +32,11 @@ fi
for user in helmut holger mattia ; do
if ! getent passwd $user > /dev/null ; then
sudo adduser --gecos "" --disabled-password $user
- sudo usermod -G jenkins,jenkins-adm $USER
+ if [ "$user" = "holger" ; then
+ sudo usermod -G jenkins,jenkins-adm,sudo,adm $user
+ else
+ sudo usermod -G jenkins,jenkins-adm $user
+ fi
fi
done
@@ -99,6 +103,7 @@ if [ -f /etc/debian_version ] ; then
git
munin-node
munin-plugins-extra
+ pigz
schroot
screen
subversion
@@ -160,7 +165,6 @@ if [ -f /etc/debian_version ] ; then
openbios-sparc
openjdk-7-jre
ovmf
- pigz
postgresql-client-9.4
poxml
procmail
@@ -220,7 +224,7 @@ fi
# deploy package configuration in /etc
#
cd $BASEDIR
-sudo cp --preserve=mode,timestamps -r hosts/jenkins/etc/* /etc
+sudo cp --preserve=mode,timestamps -r hosts/$HOSTNAME/etc/* /etc
#
# more configuration than a simple cp can do