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
48cb40c2
Commit
48cb40c2
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Removing config file entries
parent
d242b219
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-htmly
+4
-5
4 additions, 5 deletions
src/freedombone-app-htmly
src/freedombone-utils-config
+31
-0
31 additions, 0 deletions
src/freedombone-utils-config
with
35 additions
and
5 deletions
src/freedombone-app-htmly
+
4
−
5
View file @
48cb40c2
...
...
@@ -324,14 +324,13 @@ function remove_htmly {
if
[
-d
/var/www/
$HTMLY_DOMAIN_NAME
]
;
then
rm
-rf
/var/www/
$HTMLY_DOMAIN_NAME
fi
if
[
$HTMLY_CODE
]
;
then
sed
-i
'/HTMLY_DOMAIN_NAME.*/d'
$CONFIGURATION_FILE
sed
-i
'/HTMLY_CODE.*/d'
$CONFIGURATION_FILE
fi
remove_config_param HTMLY_DOMAIN_NAME
remove_config_param HTMLY_CODE
function_check remove_onion_service
remove_onion_service htmly
${
HTMLY_ONION_PORT
}
sed
-i
'/install_htmly/d'
$COMPLETION_FILE
remove_completion_param install_htmly
sed
-i
'/Htmly .*/d'
$COMPLETION_FILE
sed
-i
'/htmly .*/d'
$COMPLETION_FILE
}
function
get_htmly_admin_password
{
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-config
+
31
−
0
View file @
48cb40c2
...
...
@@ -229,6 +229,37 @@ function write_config_param {
fi
}
function
remove_config_param
{
param_name
=
"
$1
"
if
[
${#
param_name
}
-gt
0
]
;
then
if
[
$CONFIGURATION_FILE
]
;
then
if
[
-f
$CONFIGURATION_FILE
]
;
then
if
grep
-q
"
${
param_name
}
="
$CONFIGURATION_FILE
;
then
sed
-i
"/
${
param_name
}
=/d"
$CONFIGURATION_FILE
fi
fi
fi
fi
}
function
remove_completion_param
{
param_name
=
"
$1
"
if
[
${#
param_name
}
-gt
0
]
;
then
if
[
$COMPLETION_FILE
]
;
then
if
[
-f
$COMPLETION_FILE
]
;
then
if
grep
-Fxq
"
${
param_name
}
"
$COMPLETION_FILE
;
then
sed
-i
"/
${
param_name
}
/d"
$COMPLETION_FILE
fi
if
grep
-q
"
${
param_name
}
:"
$COMPLETION_FILE
;
then
sed
-i
"/
${
param_name
}
:/d"
$COMPLETION_FILE
fi
fi
fi
fi
}
function
save_configuration_values
{
for
v
in
"
${
configuration_variables
[@]
}
"
do
...
...
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