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
06ec000f
Commit
06ec000f
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Function to remove search engine
parent
6c593002
No related branches found
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-irc
+1
-0
1 addition, 0 deletions
src/freedombone-app-irc
src/freedombone-app-search
+21
-0
21 additions, 0 deletions
src/freedombone-app-search
with
22 additions
and
0 deletions
src/freedombone-app-irc
+
1
−
0
View file @
06ec000f
...
...
@@ -47,6 +47,7 @@ function remove_irc_server {
iptables
-D
INPUT
-p
tcp
--dport
1024:65535
--sport
$IRC_PORT
-j
ACCEPT
function_check save_firewall_settings
save_firewall_settings
function_check remove_onion_service
remove_onion_service irc
${
IRC_ONION_PORT
}
sed
-i
'/install_irc_server/d'
$COMPLETION_FILE
sed
-i
'/IRC /d'
$COMPLETION_FILE
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-app-search
+
21
−
0
View file @
06ec000f
...
...
@@ -36,6 +36,27 @@ SEARCH_ENGINE_ONION_HOSTNAME=
SEARCH_ENGINE_LOGIN_TEXT
=
$"Search engine login"
SEARCH_ENGINE_PASSWORD
=
function
remove_search_engine
{
if
!
grep
-Fxq
"install_search_engine"
$COMPLETION_FILE
;
then
return
fi
systemctl stop searx
systemctl disable searx
rm
/etc/systemd/system/searx.service
function_check remove_onion_service
remove_onion_service searx
${
SEARCH_ENGINE_ONION_PORT
}
userdel
-r
searx
nginx_dissite searx
if
[
-f
/etc/nginx/sites-available/searx
]
;
then
rm
/etc/nginx/sites-available/searx
fi
if
[
-d
${
SEARCH_ENGINE_PATH
}
/searx
]
;
then
rm
-rf
${
SEARCH_ENGINE_PATH
}
/searx
fi
sed
-i
'/install_search_engine/d'
$COMPLETION_FILE
sed
-i
'/Search engine /d'
$COMPLETION_FILE
}
function
install_search_engine
{
# Note: currently socks5 outgoing proxies to other search engines does not work
if
[[
$SYSTEM_TYPE
==
"
$VARIANT_MESH
"
]]
;
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