Skip to content
Snippets Groups Projects
Verified Commit 99bdf68c authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

init_node: use sudo instead of log out and log ins, etc

parent cf70ea0a
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,8 @@ MIN=$(( (DURATION-HOUR*3600)/60 ))
SEC=$(( DURATION-HOUR*3600-MIN*60 ))
echo "$(date -u) - total duration: ${HOUR}h ${MIN}m ${SEC}s."
echo
echo "Now log out and log in as jenkins-adm and run:"
echo "Now finish the deployment by running:"
echo " cd ~jenkins-adm/jenkins.debian.net/"
echo " ./update_jdn.sh 2>&1 | sudo tee -a /var/log/jenkins/update_jdn.log"
# this assumes that the user you are running this script can sudo to root.
# "usually" sudo-to-root is passwordless but sudo-to-others is not, so workaround that
echo " sudo sudo -u jenkins-adm ./update_jdn.sh 2>&1 | sudo tee -a /var/log/jenkins/update_jdn.log"
  • Owner

    haha, nice catch! though it does even make sense if you read the comment above... :)))

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment