summaryrefslogtreecommitdiffstats
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 21:08:02 +0200
commit4c33d419b112e4c276456da5c054755e07dd400f (patch)
treeac42fcc8ae989e019cad02c3d578d5ee0a8f0fcc
parent2850c6796c568d48c742789001f79e05488b2f1d (diff)
downloadjenkins.debian.net-4c33d419b112e4c276456da5c054755e07dd400f.tar.xz
use `rsync --delete` instead of `cp` while copying jenkins scripts so old files can be removed from the target directory
use -n for the first run, to see what would actually be removed
-rwxr-xr-xupdate_jdn.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index e99bf87a..cc91ab5a 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -445,7 +445,7 @@ 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 rsync -rpt --delete -n $dir /srv/jenkins/
sudo chown -R jenkins-adm.jenkins-adm /srv/jenkins/$dir
done
HOST_JOBS="hosts/$HOSTNAME/job-cfg"