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
63416610
Commit
63416610
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Restore config before recompiling pleoma
parent
8790ec7e
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-pleroma
+5
-4
5 additions, 4 deletions
src/freedombone-app-pleroma
with
5 additions
and
4 deletions
src/freedombone-app-pleroma
+
5
−
4
View file @
63416610
...
...
@@ -464,6 +464,7 @@ function pleroma_set_background_image {
write_config_param
"PLEROMA_BACKGROUND_IMAGE_URL"
"
$PLEROMA_BACKGROUND_IMAGE_URL
"
if
[[
$(
pleroma_set_background_image_from_url
$PLEROMA_DIR
"
$PLEROMA_DOMAIN_NAME
"
"
$PLEROMA_BACKGROUND_IMAGE_URL
"
"
$PLEROMA_TITLE
"
|
tail
-n
1
)
==
"0"
]]
;
then
pleroma_recompile
dialog
--title
$"Set Pleroma login background"
\
--msgbox
$"The background image has been set"
6 60
fi
...
...
@@ -707,16 +708,16 @@ function upgrade_pleroma {
set_repo_commit
$PLEROMA_DIR
"pleroma commit"
"
$PLEROMA_COMMIT
"
$PLEROMA_REPO
chown
-R
pleroma:pleroma
$PLEROMA_DIR
# restore the configuration
cp
$PLEROMA_DIR
/priv/static/static/config_prev.json
$PLEROMA_DIR
/priv/static/static/config.json
chown
pleroma:pleroma
$PLEROMA_DIR
/priv/static/static/config.json
sudo
-u
pleroma mix deps.get
pleroma_recompile
expire_pleroma_posts
$PLEROMA_DOMAIN_NAME
$PLEROMA_EXPIRE_MONTHS
create_pleroma_blocklist
# restore the configuration
cp
$PLEROMA_DIR
/priv/static/static/config_prev.json
$PLEROMA_DIR
/priv/static/static/config.json
chown
pleroma:pleroma
$PLEROMA_DIR
/priv/static/static/config.json
systemctl restart pleroma
}
...
...
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