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
2b79839e
Commit
2b79839e
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Remove app from the removed list
parent
8be1bd20
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-installer
+10
-0
10 additions, 0 deletions
src/freedombone-installer
with
10 additions
and
0 deletions
src/freedombone-installer
+
10
−
0
View file @
2b79839e
...
...
@@ -43,6 +43,9 @@ install_state=$INSTALL_STATE_FIRST_BOOT
CONFIGURATION_FILE
=
"/root/
${
PROJECT_NAME
}
.cfg"
COMPLETION_FILE
=
"/root/
${
PROJECT_NAME
}
-completed.txt"
# file containing a list of removed apps
REMOVED_APPS_FILE
=
/root/removed
# contains the blocked users and domains
FIREWALL_DOMAINS
=
/root/
${
PROJECT_NAME
}
-firewall-domains
.cfg
...
...
@@ -843,10 +846,16 @@ function install_apps_from_webadmin {
fi
fi
# remove app from the removed file
if
!
grep
-Fxq
"_
${
app_name
}
_"
"
$REMOVED_APPS_FILE
"
;
then
sed
-i
"/_
${
app_name
}
_/d"
"
$REMOVED_APPS_FILE
"
fi
if
!
/usr/local/bin/
${
PROJECT_NAME
}
-addremove
add
"
${
app_name
}
"
>
"
$webadmin_install_dir
/applog.txt"
;
then
sed
-i
"/
$linestr
/d"
"
$pending_installs
"
web_admin_create_add_apps
fi
chown
www-data:www-data
"
$webadmin_install_dir
/applog.txt"
fi
# remove the line
...
...
@@ -868,6 +877,7 @@ function remove_apps_from_webadmin {
if
[[
"
$linestr
"
!=
*
'_running'
*
]]
;
then
sed
-i
"s|
${
app_name
}
|
${
app_name
}
_running|g"
"
$pending_removes
"
fi
/usr/local/bin/
${
PROJECT_NAME
}
-addremove
remove
"
${
app_name
}
"
>
"
$webadmin_install_dir
/applog.txt"
web_admin_create_add_apps
chown
www-data:www-data
"
$webadmin_install_dir
/applog.txt"
...
...
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