Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
LOFAR2.0
tango
Commits
59ca7cb0
Commit
59ca7cb0
authored
3 years ago
by
Thomas Juerges
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-218
Instead of deleting the tango dir, first move it out of the way
parent
4879b8f2
No related branches found
No related tags found
1 merge request
!33
Resolve L2SS-218 "Move existing tooling to bootstrap dir"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bootstrap/sbin/rebuild_system_from_scratch.sh
+9
-5
9 additions, 5 deletions
bootstrap/sbin/rebuild_system_from_scratch.sh
with
9 additions
and
5 deletions
bootstrap/sbin/rebuild_system_from_scratch.sh
+
9
−
5
View file @
59ca7cb0
...
...
@@ -7,6 +7,9 @@ if [ ! -d ${HOME_DIR}/bootstrap ]; then
exit
1
fi
# Save for the moment when tango will be cloned.
OLD_HOME_DIR
=
${
HOME_DIR
}
.old
trap
' exit ${?} '
ABRT EXIT HUP INT TERM QUIT ERR
...
...
@@ -22,9 +25,9 @@ function build_lofar_images()
popd
}
function
re
move_tango_dir
()
function
move_tango_dir
_out_of_the_way
()
{
rm
-rf
${
HOME_DIR
}
mv
${
HOME_DIR
}
${
OLD_
HOME_DIR
}
}
function
remove_images
()
...
...
@@ -90,9 +93,10 @@ stop_images
# Clean out the Docker volumes.
clean_images
# Delete the tango repo dir. Notice that this also deletes the bootstrap dir
# which contains this and the helper scripts.
remove_tango_dir
# Move the tango repo dir out of the way.
echo
"-> Moving the tango directory
${
HOME_DIR
}
out of the way..."
move_tango_dir_out_of_the_way
echo
-e
"
\t
Done.
\n
"
# Therefore, since the tango/boostrap dir is now gone, pull the repo first
# and then continue.
...
...
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