This file is indexed.

/usr/share/openstack/bundles/common-openstack/pre.sh is in openstack 1.0.6.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

. /usr/share/conjure-up/hooklib/common.sh

if [[ $JUJU_PROVIDERTYPE =~ "lxd" ]]; then
    debug openstack "(pre) processing lxd"

    profilename=$(juju switch | cut -d: -f2)
    sed "s/##MODEL##/$profilename/" $SCRIPTPATH/lxd-profile.yaml | lxc profile edit "juju-$profilename"

    RET=$?
    if [ $RET -ne 0 ]; then
        exposeResult "(pre) Failed to update lxd profile" $RET "false"
    else
        exposeResult "(pre) Complete" 0 "true"
    fi

fi
debug openstack "(pre) unknown provider type $JUJU_PROVIDERTYPE"
exposeResult "Unknown provider type" 1 "false"