Commit e67051de authored by Holger Levsen's avatar Holger Levsen
Browse files

move deploy_kgb.py to (/srv/jenkins/)bin/



Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 6e01c2d7
...@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment