diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-05-16 14:03:15 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-05-16 14:03:15 +0200 |
commit | 1e12993d648097785ba6ad3f179f9ac005ef726d (patch) | |
tree | 6e1e5324909320cecb44265e1a82ac77b6124766 | |
parent | 5d3ffc4746ede4d0207cf4b8c810ceb012f5e681 (diff) | |
download | jenkins.debian.net-1e12993d648097785ba6ad3f179f9ac005ef726d.tar.xz |
only create link if it doesnt already exist (to avoid creating another link inside)
-rwxr-xr-x | update_jdn.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh index 501896b0..545ca9c4 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -217,7 +217,7 @@ sudo chown root.root /etc/sudoers.d/jenkins-adm ; sudo chmod 700 /etc/sudoers.d/ sudo ln -sf /etc/apache2/sites-available/jenkins.debian.net /etc/apache2/sites-enabled/000-default sudo chown jenkins-adm.jenkins-adm /etc/apache2/sites-enabled/000-default # for reproducible.d.n url rewriting: -sudo ln -sf /var/lib/jenkins/userContent /var/www/userContent +[ -L /var/www/userContent ] || sudo ln -sf /var/lib/jenkins/userContent /var/www/userContent sudo service apache2 reload cd /etc/munin/plugins ; sudo rm -f postfix_* open_inodes df_inode interrupts irqstats threads proc_pri vmstat if_err_eth0 fw_forwarded_local fw_packets forks open_files users 2>/dev/null [ -L apache_accesses ] || for i in apache_accesses apache_volume ; do ln -s /usr/share/munin/plugins/$i $i ; done |