Skip to content

Commit

Permalink
Use os.MkdirAll
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalif committed Mar 6, 2024
1 parent 2f4814a commit 11d8b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mounter/geesefs.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (geesefs *geesefsMounter) Mount(target, volumeID string) error {
conn.ResetFailedUnit(unitName)
}
}
err = os.Mkdir("/run/systemd/system/" + unitName + ".d", 0755)
err = os.MkdirAll("/run/systemd/system/" + unitName + ".d", 0755)
if err == nil {
// force & lazy unmount to cleanup possibly dead mountpoints
err = os.WriteFile(
Expand Down

0 comments on commit 11d8b4b

Please sign in to comment.