Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
eos-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
eos
eos-docker
Merge requests
!13
Resolve "Port eos directories to /var/eos on host machine"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Port eos directories to /var/eos on host machine"
16-port-eos-directories-to-var-eos-on-host-machine
into
master
Overview
1
Commits
1
Pipelines
2
Changes
3
Merged
Martin Vala
requested to merge
16-port-eos-directories-to-var-eos-on-host-machine
into
master
7 years ago
Overview
1
Commits
1
Pipelines
2
Changes
3
Expand
Closes
#16 (closed)
Edited
7 years ago
by
Martin Vala
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
e869ed70
1 commit,
7 years ago
3 files
+
17
−
5
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
projects/eos/docker/eos-docker-config-gen
+
3
−
3
Options
@@ -87,10 +87,10 @@ function defaultEOSEnvMGM() {
@@ -87,10 +87,10 @@ function defaultEOSEnvMGM() {
function
exportVarDir
()
{
function
exportVarDir
()
{
# remove all last / from $ED_EOS_VAR_DIR
# remove all last / from $ED_EOS_VAR_DIR
case
$ED_EOS_VAR_DIR
in
*
[!
/]
*
/
)
x
=
${
x
%
"
${
x
##*[!/]
}
"
}
;;
esac
case
$ED_EOS_VAR_DIR
in
*
[!
/]
*
/
)
x
=
${
x
%
"
${
x
##*[!/]
}
"
}
;;
esac
[
-d
$ED_EOS_VAR_DIR
]
||
mkdir
-p
$ED_EOS_VAR_DIR
[
-d
$ED_EOS_VAR_DIR
/log
]
||
mkdir
-p
$ED_EOS_VAR_DIR
/log
if
[
"
$ED_EOS_VAR_DIR
"
!=
"/var"
]
;
then
if
[
"
$ED_EOS_VAR_DIR
"
!=
"/var"
]
;
then
mkdir
-p
$ED_EOS_VAR_DIR
/log
mv
-f
/var/eos
$ED_EOS_VAR_DIR
/eos
mv
-f
/var/eos
$ED_EOS_VAR_DIR
/eos
mv
-f
/var/log/eos
$ED_EOS_VAR_DIR
/log/eos
mv
-f
/var/log/eos
$ED_EOS_VAR_DIR
/log/eos
fi
fi
Loading