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
46d5099f
Commit
46d5099f
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Allow mediagoblin registrations to be disabled
parent
58ba3aa6
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-mediagoblin
+22
-0
22 additions, 0 deletions
src/freedombone-app-mediagoblin
with
22 additions
and
0 deletions
src/freedombone-app-mediagoblin
+
22
−
0
View file @
46d5099f
...
...
@@ -45,6 +45,7 @@ mediagoblin_variables=(ONION_ONLY
MY_USERNAME
MEDIAGOBLIN_DOMAIN_NAME
MEDIAGOBLIN_CODE
DEFAULT_DOMAIN_NAME
DDNS_PROVIDER
)
function
install_interactive_mediagoblin
{
...
...
@@ -58,6 +59,27 @@ function install_interactive_mediagoblin {
APP_INSTALLED
=
1
}
function
configure_interactive_mediagoblin
{
read_config_param
'MEDIAGOBLIN_DOMAIN_NAME'
MEDIAGOBLIN_BASE_DIR
=
/var/www/
$MEDIAGOBLIN_DOMAIN_NAME
/htdocs
dialog
--title
$"Mediagoblin"
\
--backtitle
$"Freedombone Control Panel"
\
--defaultno
\
--yesno
$"
\n
Allow registration of new users?"
10 60
sel
=
$?
case
$sel
in
0
)
sed
-i
's|allow_registration.*|allow_registration = true|g'
$MEDIAGOBLIN_BASE_DIR
/mediagoblin/mediagoblin.ini
;;
1
)
sed
-i
's|allow_registration.*|allow_registration = false|g'
$MEDIAGOBLIN_BASE_DIR
/mediagoblin/mediagoblin.ini
;;
255
)
return
;;
esac
systemctl restart mediagoblin
}
function
change_password_mediagoblin
{
curr_username
=
"
$1
"
new_user_password
=
"
$2
"
...
...
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