manila-image-elements/elements/manila-ubuntu-minimal/post-install.d/50-set-bash-as-default-shell
vponomaryov 5ddd59814a Use ubuntu-minimal instead of ubuntu-core
Support of ubuntu-core was dropped and now it is impossible to
continue using it. Therefore, start using ubuntu-minimal OS element
for building image.

Also, add 'other-requirements.txt' file with list of required system
packages to be installed prior to buidling image.

Change-Id: Ief7059b9e6cc2aad03c81225663f5313a8d2f5f2
Closes-Bug: #1586351
2016-05-31 19:43:31 +03:00

12 lines
267 B
Bash
Executable File

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
# Set 'bash' as default shell for 'manila' user.
id -u manila &>/dev/null || adduser manila --gecos Foo,Foo,Foo,Foo --disabled-password --quiet
sudo chsh -s /bin/bash manila