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
e67051de
Commit
e67051de
authored
Jul 06, 2020
by
Holger Levsen
Browse files
move deploy_kgb.py to (/srv/jenkins/)bin/
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
6e01c2d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
deploy_kgb.py
→
bin/
deploy_kgb.py
View file @
e67051de
File moved
update_jdn.sh
View file @
e67051de
...
@@ -802,8 +802,8 @@ if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "osuosl-build168-amd64" ] || [
...
@@ -802,8 +802,8 @@ if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "osuosl-build168-amd64" ] || [
KGB_SECRETS
=
"/srv/jenkins/kgb/secrets.yml"
KGB_SECRETS
=
"/srv/jenkins/kgb/secrets.yml"
if
[
-f
"
$KGB_SECRETS
"
]
&&
[
$(
stat
-c
"%a:%U:%G"
"
$KGB_SECRETS
"
)
=
"640:jenkins-adm:jenkins-adm"
]
;
then
if
[
-f
"
$KGB_SECRETS
"
]
&&
[
$(
stat
-c
"%a:%U:%G"
"
$KGB_SECRETS
"
)
=
"640:jenkins-adm:jenkins-adm"
]
;
then
# the last condition is to assure the files are owned by the right user/team
# the last condition is to assure the files are owned by the right user/team
if
[
"
$KGB_SECRETS
"
-nt
$STAMP
]
||
[
"deploy_kgb.py"
-nt
"
$STAMP
"
]
||
[
!
-f
$STAMP
]
;
then
if
[
"
$KGB_SECRETS
"
-nt
$STAMP
]
||
[
"
/srv/jenkins/bin/
deploy_kgb.py"
-nt
"
$STAMP
"
]
||
[
!
-f
$STAMP
]
;
then
sudo
-u
jenkins-adm
"
.
/deploy_kgb.py"
sudo
-u
jenkins-adm
"
/srv/jenkins/bin
/deploy_kgb.py"
else
else
explain
"kgb-client configuration unchanged, nothing to do."
explain
"kgb-client configuration unchanged, nothing to do."
fi
fi
...
...
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