Add apt-get update in application deployment

apt-get update should be performed first before installing the
debian packages, otherwise it may breaks during the application
script execution in tests.

Change-Id: I0c2e35fe1c05182ab7a9db094f787df9a8df1248
This commit is contained in:
Rocky 2018-01-11 13:48:32 +11:00
parent 04d53edd7f
commit 8829dd49cd
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ Methods:
- $resources: new(sys:Resources)
- $linux: new(conf:Linux)
- $linux.runCommand($.instance.agent, 'apt-get update')
- $linux.runCommand($.instance.agent, 'apt-get -y install apache2')
- $linux.runCommand($.instance.agent, 'iptables -I INPUT 1 -p tcp --dport 443 -j ACCEPT')
- $linux.runCommand($.instance.agent, 'iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT')