Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
468d8b65
Verified
Commit
468d8b65
authored
Aug 11, 2017
by
Mattia Rizzolo
Browse files
update_jdn: force reconfiguration of apache and munin when update_jdn.sh is updated
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
096e85b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
update_jdn.sh
View file @
468d8b65
...
@@ -569,7 +569,7 @@ sudo chown root.root /etc/sudoers.d/jenkins-adm ; sudo chmod 700 /etc/sudoers.d/
...
@@ -569,7 +569,7 @@ sudo chown root.root /etc/sudoers.d/jenkins-adm ; sudo chmod 700 /etc/sudoers.d/
[
-f
/etc/mailname
]
||
(
echo
$HOSTNAME
.debian.net |
sudo tee
/etc/mailname
)
[
-f
/etc/mailname
]
||
(
echo
$HOSTNAME
.debian.net |
sudo tee
/etc/mailname
)
if
[
"
$HOSTNAME
"
=
"jenkins"
]
;
then
if
[
"
$HOSTNAME
"
=
"jenkins"
]
;
then
if
[
$BASEDIR
/hosts/
$HOSTNAME
/etc/apache2
-nt
$STAMP
]
||
[
!
-f
$STAMP
]
;
then
if
!
$UP2DATE
||
[
$BASEDIR
/hosts/
$HOSTNAME
/etc/apache2
-nt
$STAMP
]
;
then
if
[
!
-e
/etc/apache2/mods-enabled/proxy.load
]
;
then
if
[
!
-e
/etc/apache2/mods-enabled/proxy.load
]
;
then
sudo
a2enmod proxy
sudo
a2enmod proxy
sudo
a2enmod proxy_http
sudo
a2enmod proxy_http
...
@@ -594,7 +594,7 @@ if [ "$HOSTNAME" = "jenkins" ] ; then
...
@@ -594,7 +594,7 @@ if [ "$HOSTNAME" = "jenkins" ] ; then
fi
fi
fi
fi
if
[
$BASEDIR
/hosts/
$HOSTNAME
/etc/munin
-nt
$STAMP
]
||
[
!
-f
$STAMP
]
;
then
if
!
$UP2DATE
||
[
$BASEDIR
/hosts/
$HOSTNAME
/etc/munin
-nt
$STAMP
]
;
then
cd
/etc/munin/plugins
cd
/etc/munin/plugins
sudo rm
-f
postfix_
*
open_inodes interrupts irqstats threads proc_pri vmstat if_err_
*
exim_
*
netstat fw_forwarded_local fw_packets forks open_files
users
nfs
*
iostat_ios ntp
*
2>/dev/null
sudo rm
-f
postfix_
*
open_inodes interrupts irqstats threads proc_pri vmstat if_err_
*
exim_
*
netstat fw_forwarded_local fw_packets forks open_files
users
nfs
*
iostat_ios ntp
*
2>/dev/null
case
$HOSTNAME
in
case
$HOSTNAME
in
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment