added sudo to script

This commit is contained in:
Jordan A 2019-05-09 13:25:03 -07:00
parent 9731ff7a67
commit 0f96483a3a

View file

@ -15,8 +15,8 @@ echo "curl \"http://192.168.0.18:8081/artifactory/libs-snapshot-local/org/spring
paste -d '' command version > firsthalf paste -d '' command version > firsthalf
echo "\" -o /usr/share/tomcat/webapps/petclinic.war" > secondhalf echo "\" -o /usr/share/tomcat/webapps/petclinic.war" > secondhalf
paste -d '' firsthalf secondhalf > fullcmd paste -d '' firsthalf secondhalf > fullcmd
chmod 755 fullcmd sudo chmod 755 fullcmd
./fullcmd sudo ./fullcmd
service tomcat restart sudo service tomcat restart
#rm -f command firsthalf fullcmd maven-metadata.xml secondhalf version #rm -f command firsthalf fullcmd maven-metadata.xml secondhalf version
rm -f command firsthalf maven-metadata.xml secondhalf version rm -f command firsthalf maven-metadata.xml secondhalf version