Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
592a0404
Commit
592a0404
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Use a fixed mpd password
parent
a69d4b76
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-mpd
+2
-21
2 additions, 21 deletions
src/freedombone-app-mpd
with
2 additions
and
21 deletions
src/freedombone-app-mpd
+
2
−
21
View file @
592a0404
...
...
@@ -46,6 +46,7 @@ REQUIRES_APP=
MPD_DOMAIN_NAME
=
MPD_PORT
=
6600
MPD_PORT_HTTP
=
8250
MPD_ADMIN_PASSWORD
=
'mpd'
# These parameters are used by the FreedomBox mobile app and web UI
MPD_SHORT_DESCRIPTION
=
"Stream music from your server"
...
...
@@ -116,14 +117,7 @@ function change_password_mpd {
curr_username
=
"
$1
"
new_user_password
=
"
$2
"
read_config_param MY_USERNAME
if
[[
"
$curr_username
"
==
"
$MY_USERNAME
"
]]
;
then
sed
-i
"s|password.*|password
\"
${
new_user_password
}
@read,add,control,admin
\"
"
;
systemctl restart mpd
fi
"
${
PROJECT_NAME
}
-pass"
-u
"
$curr_username
"
-a
mpd
-p
"
$new_user_password
"
"
${
PROJECT_NAME
}
-pass"
-u
"
$curr_username
"
-a
mpd
-p
"
$MPD_ADMIN_PASSWORD
"
}
function
reconfigure_mpd
{
...
...
@@ -229,19 +223,6 @@ 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment