Skip to content
Snippets Groups Projects
Commit 381b2d77 authored by Bob Mottram's avatar Bob Mottram
Browse files

Create mpd password

parent cda74a47
No related branches found
No related tags found
No related merge requests found
......@@ -209,6 +209,19 @@ function install_mpd {
increment_app_install_progress
if [ -f "$IMAGE_PASSWORD_FILE" ]; then
MPD_ADMIN_PASSWORD="$(printf "%s" "$(cat "$IMAGE_PASSWORD_FILE")")"
else
if [ ! "$MPD_ADMIN_PASSWORD" ]; then
MPD_ADMIN_PASSWORD="$(create_password "${MINIMUM_PASSWORD_LENGTH}")"
fi
fi
if [ ! "$MPD_ADMIN_PASSWORD" ]; then
exit 92
fi
increment_app_install_progress
"${PROJECT_NAME}-pass" -u "$MY_USERNAME" -a mpd -p "$MPD_ADMIN_PASSWORD"
increment_app_install_progress
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment