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:
parent
04d53edd7f
commit
8829dd49cd
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue