
Significant changes: * Using docker image to install datastore. * Datastore image is common to different datastores. * Using backup docker image to do backup and restore. * Support MariaDB replication * Set most of the functional jobs as non-voting as nested virtualization is not supported in CI. Change-Id: Ia9c97a63a961eebc336b70d28dc77638144c1834
22 lines
544 B
Bash
Executable File
22 lines
544 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# PURPOSE: Add the guest image user that will own the trove agent source if the
|
|
# user does not already exist
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -e
|
|
set -o pipefail
|
|
|
|
GUEST_USERNAME=${GUEST_USERNAME:-"ubuntu"}
|
|
|
|
if ! id -u ${GUEST_USERNAME} >/dev/null 2>&1; then
|
|
echo "Adding ${GUEST_USERNAME} user"
|
|
useradd -G sudo -m ${GUEST_USERNAME} -s /bin/bash
|
|
chown ${GUEST_USERNAME}:${GUEST_USERNAME} /home/${GUEST_USERNAME}
|
|
passwd ${GUEST_USERNAME} <<_EOF_
|
|
${GUEST_USERNAME}
|
|
${GUEST_USERNAME}
|
|
_EOF_
|
|
fi |