|
|
@ -16,7 +16,7 @@
|
|
|
|
# limitations under the License. #
|
|
|
|
# limitations under the License. #
|
|
|
|
#--------------------------------------------------------------------------- #
|
|
|
|
#--------------------------------------------------------------------------- #
|
|
|
|
|
|
|
|
|
|
|
|
[ -n "${PASSWORD}" ] || exit 0
|
|
|
|
[ -n "${PASSWORD}${CRYPTED_PASSWORD}" ] || exit 0
|
|
|
|
|
|
|
|
|
|
|
|
if [ -z "${USERNAME}" ]
|
|
|
|
if [ -z "${USERNAME}" ]
|
|
|
|
then
|
|
|
|
then
|
|
|
@ -29,4 +29,10 @@ then
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "${PASSWORD}" ]
|
|
|
|
|
|
|
|
then
|
|
|
|
chpasswd <<< "${USERNAME}:${PASSWORD}"
|
|
|
|
chpasswd <<< "${USERNAME}:${PASSWORD}"
|
|
|
|
|
|
|
|
elif [ -n "${CRYPTED_PASSWORD}" ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
usermod -p "${CRYPTED_PASSWORD}" "${USERNAME}"
|
|
|
|
|
|
|
|
fi
|
|
|
|