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
48d3fd0e
Commit
48d3fd0e
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Setting searx background
parent
79b2dec4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
img/backgrounds/searx.jpg
+0
-0
0 additions, 0 deletions
img/backgrounds/searx.jpg
src/freedombone-app-searx
+14
-1
14 additions, 1 deletion
src/freedombone-app-searx
src/freedombone-utils-gnusocialtools
+1
-1
1 addition, 1 deletion
src/freedombone-utils-gnusocialtools
with
15 additions
and
2 deletions
img/backgrounds/searx.jpg
0 → 100644
+
0
−
0
View file @
48d3fd0e
49.5 KiB
This diff is collapsed.
Click to expand it.
src/freedombone-app-searx
+
14
−
1
View file @
48d3fd0e
...
...
@@ -48,6 +48,16 @@ searx_variables=(SEARX_REPO
MY_USERNAME
SYSTEM_TYPE
)
function
searx_set_default_background
{
if
[
-f
~/freedombone/img/backgrounds/searx.jpg
]
;
then
cp
~/freedombone/img/backgrounds/searx.jpg /etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg
else
if
[
-f
/home/
$MY_USERNAME
/freedombone/img/backgrounds/searx.jpg
]
;
then
cp
/home/
$MY_USERNAME
/freedombone/img/backgrounds/searx.jpg /etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg
fi
fi
}
function
remove_user_friendica
{
remove_username
=
"
$1
"
...
...
@@ -613,7 +623,8 @@ function create_searx_config {
}
function
upgrade_searx
{
set_repo_commit
$SEARX_PATH
/searx
"Search engine commit"
"
$SEARX_COMMIT
"
$SEARX_REPO
set_repo_commit
$SEARX_PATH
/searx
"searx commit"
"
$SEARX_COMMIT
"
$SEARX_REPO
searx_set_default_background
}
function
backup_local_searx
{
...
...
@@ -769,6 +780,8 @@ function install_searx {
create_searx_config
searx_set_default_background
chown
-R
searx:searx
${
SEARX_PATH
}
/searx
# enable the site
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-gnusocialtools
+
1
−
1
View file @
48d3fd0e
...
...
@@ -197,7 +197,7 @@ function install_gnusocial_default_background {
cp
~/freedombone/img/backgrounds/
${
gnusocial_type
}
.jpg /var/www/
${
domain_name
}
/htdocs/static/bg.jpg
else
if
[
-f
/home/
$MY_USERNAME
/freedombone/img/backgrounds/
${
gnusocial_type
}
.jpg
]
;
then
cp
/home/
$MY_USERNAME
/freedombone/img/backgrounds
${
gnusocial_type
}
.jpg /var/www/
${
domain_name
}
/htdocs/static/bg.jpg
cp
/home/
$MY_USERNAME
/freedombone/img/backgrounds
/
${
gnusocial_type
}
.jpg /var/www/
${
domain_name
}
/htdocs/static/bg.jpg
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