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
30af6b69
Commit
30af6b69
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
pleroma_secret config file defined in one place
parent
3420e71e
No related branches found
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-pleroma
+1
-2
1 addition, 2 deletions
src/freedombone-app-pleroma
with
1 addition
and
2 deletions
src/freedombone-app-pleroma
+
1
−
2
View file @
30af6b69
...
@@ -42,6 +42,7 @@ PLEROMA_COMMIT='303289d7daac3a51f991bb8603f36628a5d944c1'
...
@@ -42,6 +42,7 @@ PLEROMA_COMMIT='303289d7daac3a51f991bb8603f36628a5d944c1'
PLEROMA_ADMIN_PASSWORD
=
PLEROMA_ADMIN_PASSWORD
=
PLEROMA_DIR
=
/etc/pleroma
PLEROMA_DIR
=
/etc/pleroma
PLEROMA_SECRET_KEY
=
""
PLEROMA_SECRET_KEY
=
""
pleroma_secret
=
$PLEROMA_DIR
/config/dev.secret.exs
PLEROMA_BACKGROUND_IMAGE_URL
=
PLEROMA_BACKGROUND_IMAGE_URL
=
...
@@ -406,7 +407,6 @@ function pleroma_create_database {
...
@@ -406,7 +407,6 @@ function pleroma_create_database {
echo $"Missing directory $PLEROMA_DIR/config"
echo $"Missing directory $PLEROMA_DIR/config"
exit 7835393
exit 7835393
fi
fi
pleroma_secret=$PLEROMA_DIR/config/dev.secret.exs
if [ ! -f $PLEROMA_DIR/config/dev.exs ]; then
if [ ! -f $PLEROMA_DIR/config/dev.exs ]; then
echo $"Did not find $PLEROMA_DIR/config/dev.exs"
echo $"Did not find $PLEROMA_DIR/config/dev.exs"
exit 78923528
exit 78923528
...
@@ -1186,7 +1186,6 @@ function install_pleroma {
...
@@ -1186,7 +1186,6 @@ function install_pleroma {
# We need to set up the url option again because it somehow gets
# We need to set up the url option again because it somehow gets
# lost during mix compile
# lost during mix compile
pleroma_secret
=
$PLEROMA_DIR
/config/dev.secret.exs
if
!
grep
-q
'watchers: [],'
$pleroma_secret
;
then
if
!
grep
-q
'watchers: [],'
$pleroma_secret
;
then
sed
-i
's|watchers: \[\]|watchers: \[\],|g'
$pleroma_secret
sed
-i
's|watchers: \[\]|watchers: \[\],|g'
$pleroma_secret
fi
fi
...
...
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