diff --git a/modules/openstack_project/files/nodepool/scripts/install_devstack_dependencies.sh b/modules/openstack_project/files/nodepool/scripts/install_devstack_dependencies.sh old mode 100644 new mode 100755 diff --git a/modules/openstack_project/files/nodepool/scripts/prepare_tripleo.sh b/modules/openstack_project/files/nodepool/scripts/prepare_tripleo.sh index 56ed667d32..a8655e705e 100755 --- a/modules/openstack_project/files/nodepool/scripts/prepare_tripleo.sh +++ b/modules/openstack_project/files/nodepool/scripts/prepare_tripleo.sh @@ -18,8 +18,11 @@ # limitations under the License. # Enable precise-backports so we can install jq -sudo sed -i -e 's/# \(deb .*precise-backports main \)/\1/g' /etc/apt/sources.list -sudo apt-get update +if [ -f /usr/bin/apt-get ]; then + sudo sed -i -e 's/# \(deb .*precise-backports main \)/\1/g' \ + /etc/apt/sources.list + sudo apt-get update +fi ./install_devstack_dependencies.sh