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
4737a503
Commit
4737a503
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Separate custom logo function for pleroma
parent
775177fc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-app-pleroma
+2
-0
2 additions, 0 deletions
src/freedombone-app-pleroma
src/freedombone-utils-gnusocialtools
+27
-16
27 additions, 16 deletions
src/freedombone-utils-gnusocialtools
with
29 additions
and
16 deletions
src/freedombone-app-pleroma
+
2
−
0
View file @
4737a503
...
@@ -766,6 +766,8 @@ function upgrade_pleroma {
...
@@ -766,6 +766,8 @@ function upgrade_pleroma {
sudo -u pleroma mix deps.clean --build mime
sudo -u pleroma mix deps.clean --build mime
sudo -u pleroma mix ecto.migrate
sudo -u pleroma mix ecto.migrate
#pleroma_custom_logo "$PLEROMA_DIR"
expire_pleroma_posts "$PLEROMA_DOMAIN_NAME" "$PLEROMA_EXPIRE_MONTHS"
expire_pleroma_posts "$PLEROMA_DOMAIN_NAME" "$PLEROMA_EXPIRE_MONTHS"
create_pleroma_blocklist
create_pleroma_blocklist
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-gnusocialtools
+
27
−
16
View file @
4737a503
...
@@ -95,6 +95,32 @@ function qvitter_update_background {
...
@@ -95,6 +95,32 @@ function qvitter_update_background {
fi
fi
}
}
function
pleroma_custom_logo
{
basedir
=
"
$1
"
if
[
"
$2
"
]
;
then
if
[[
"
$2
"
==
*
".png"
]]
;
then
cp
"
$2
"
"
$basedir
/priv/static/static/logo.png"
return
fi
fi
if
[
-f
"
$basedir
/static/logo.png"
]
;
then
if
[
-f
"
$HOME
/
${
PROJECT_NAME
}
/img/logo_fbone3.png"
]
;
then
cp
"
$HOME
/
${
PROJECT_NAME
}
/img/logo_fbone3.png"
"
$basedir
/static/logo.png"
if
[
-d
"
$basedir
/priv/static/static"
]
;
then
cp
"
$HOME
/
${
PROJECT_NAME
}
/img/logo_fbone3.png"
"
$basedir
/priv/static/static/logo.png"
fi
else
if
[
-f
"/home/
$MY_USERNAME
/
${
PROJECT_NAME
}
/img/logo_fbone3.png"
]
;
then
cp
"/home/
$MY_USERNAME
/
${
PROJECT_NAME
}
/img/logo_fbone3.png"
"
$basedir
/static/logo.png"
if
[
-d
"
$basedir
/priv/static/static"
]
;
then
cp
"/home/
$MY_USERNAME
/
${
PROJECT_NAME
}
/img/logo_fbone3.png"
"
$basedir
/priv/static/static/logo.png"
fi
fi
fi
fi
}
function
pleroma_set_background_image_from_url
{
function
pleroma_set_background_image_from_url
{
basedir
=
"
$1
"
basedir
=
"
$1
"
domain_name
=
"
$2
"
domain_name
=
"
$2
"
...
@@ -157,22 +183,7 @@ function pleroma_set_background_image_from_url {
...
@@ -157,22 +183,7 @@ function pleroma_set_background_image_from_url {
return
return
fi
fi
# customise the logo
pleroma_custom_logo
"
$basedir
"
if
[
-f
"
$basedir
/static/logo.png"
]
;
then
if
[
-f
"
$HOME
/
${
PROJECT_NAME
}
/img/logo_fbone3.png"
]
;
then
cp
"
$HOME
/
${
PROJECT_NAME
}
/img/logo_fbone3.png"
"
$basedir
/static/logo.png"
if
[
-d
"
$basedir
/priv/static/static"
]
;
then
cp
"
$HOME
/
${
PROJECT_NAME
}
/img/logo_fbone3.png"
"
$basedir
/priv/static/static/logo.png"
fi
else
if
[
-f
"/home/
$MY_USERNAME
/
${
PROJECT_NAME
}
/img/logo_fbone3.png"
]
;
then
cp
"/home/
$MY_USERNAME
/
${
PROJECT_NAME
}
/img/logo_fbone3.png"
"
$basedir
/static/logo.png"
if
[
-d
"
$basedir
/priv/static/static"
]
;
then
cp
"/home/
$MY_USERNAME
/
${
PROJECT_NAME
}
/img/logo_fbone3.png"
"
$basedir
/priv/static/static/logo.png"
fi
fi
fi
fi
# customise the title
# customise the title
if
[
-f
"
$basedir
/static/config.json"
]
;
then
if
[
-f
"
$basedir
/static/config.json"
]
;
then
...
...
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