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
d6a73872
Commit
d6a73872
authored
1 year ago
by
Somnath Ghorpade
Browse files
Options
Downloads
Patches
Plain Diff
changed Directory creation permission.
parent
755e351b
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 @
d6a73872
...
...
@@ -95,7 +95,7 @@ func InitUsingJson(filePath string) error {
opts
.
Port
=
h
.
Port
if
h
.
Dir
!=
""
{
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
}
}
...
...
@@ -135,7 +135,7 @@ func InitImmuDBConnections(hosts []ImmuHost) error {
opts
.
Port
=
v
.
Port
if
v
.
Dir
!=
""
{
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
}
}
...
...
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