Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
c1ef3554
Commit
c1ef3554
authored
1 year ago
by
Vijay Kumar Chauhan
Browse files
Options
Downloads
Plain Diff
Merge branch 'SG_ImmuDB' into 'coreimmudb'
changed Directory creation permission. See merge request
!263
parents
755e351b
d6a73872
Branches
Branches containing commit
Tags
Tags containing commit
3 merge requests
!270
Core ImmuDB package and TOTP plugin - Implementation
,
!269
Core ImmuDB package and TOTP plugin - Implementation
,
!263
changed Directory creation permission.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dalmdl/coreimmudb/coreimmudb.go
+2
-2
dalmdl/coreimmudb/coreimmudb.go
with
2 additions
and
2 deletions
dalmdl/coreimmudb/coreimmudb.go
+
2
−
2
View file @
c1ef3554
...
@@ -95,7 +95,7 @@ func InitUsingJson(filePath string) error {
...
@@ -95,7 +95,7 @@ func InitUsingJson(filePath string) error {
opts
.
Port
=
h
.
Port
opts
.
Port
=
h
.
Port
if
h
.
Dir
!=
""
{
if
h
.
Dir
!=
""
{
if
_
,
err
:=
os
.
Stat
(
h
.
Dir
);
os
.
IsNotExist
(
err
)
{
// Checking directory is present and accessible
if
_
,
err
:=
os
.
Stat
(
h
.
Dir
);
os
.
IsNotExist
(
err
)
{
// Checking directory is present and accessible
if
err
=
os
.
Mkdir
(
h
.
Dir
,
0
642
);
err
!=
nil
{
if
err
=
os
.
Mkdir
(
h
.
Dir
,
0
740
);
err
!=
nil
{
return
err
return
err
}
}
}
}
...
@@ -135,7 +135,7 @@ func InitImmuDBConnections(hosts []ImmuHost) error {
...
@@ -135,7 +135,7 @@ func InitImmuDBConnections(hosts []ImmuHost) error {
opts
.
Port
=
v
.
Port
opts
.
Port
=
v
.
Port
if
v
.
Dir
!=
""
{
if
v
.
Dir
!=
""
{
if
_
,
err
:=
os
.
Stat
(
v
.
Dir
);
os
.
IsNotExist
(
err
)
{
// Checking directory is present and accessible
if
_
,
err
:=
os
.
Stat
(
v
.
Dir
);
os
.
IsNotExist
(
err
)
{
// Checking directory is present and accessible
if
err
=
os
.
Mkdir
(
v
.
Dir
,
0
642
);
err
!=
nil
{
if
err
=
os
.
Mkdir
(
v
.
Dir
,
0
740
);
err
!=
nil
{
return
err
return
err
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets