summaryrefslogtreecommitdiffstats
path: root/update_jdn.sh
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2016-06-17 19:01:43 +0000
committerHolger Levsen <holger@layer-acht.org>2016-06-17 22:11:17 +0200
commiteaae777d4ed6a973316c2a96b27422249ddb446f (patch)
tree11301a1fa889051ffeca1ada2b3e5a72d491201a /update_jdn.sh
parent1b7f5abf613c31ad0fe4b92e77027abf80679657 (diff)
downloadjenkins.debian.net-eaae777d4ed6a973316c2a96b27422249ddb446f.tar.xz
use `rsync --delete` instead of `cp` while copying jenkins scripts so old files can be removed from the target directory
Diffstat (limited to 'update_jdn.sh')
-rwxr-xr-xupdate_jdn.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index e99bf87a..2c52ff7f 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -445,7 +445,8 @@ explain "packages configured."
cd $BASEDIR
[ -d /srv/jenkins/features ] && sudo rm -rf /srv/jenkins/features
for dir in bin logparse cucumber live ; do
- sudo cp --preserve=mode,timestamps -r $dir /srv/jenkins/
+ sudo mkdir -p /srv/jenkins/$dir
+ sudo rsync -rpt --delete $dir/ /srv/jenkins/$dir/
sudo chown -R jenkins-adm.jenkins-adm /srv/jenkins/$dir
done
HOST_JOBS="hosts/$HOSTNAME/job-cfg"