Set strict permissions on the config file
This commit is contained in:
parent
2e5f0ef258
commit
1ea9972be7
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,10 @@ func SaveConfig() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to save config file: %v", err)
|
log.Fatalf("Failed to save config file: %v", err)
|
||||||
}
|
}
|
||||||
|
err = os.Chmod(ConfigPath, 0600)
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("Failed to set permissions on config file: %v", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show an overview of the config file
|
// Show an overview of the config file
|
||||||
|
|
Loading…
Add table
Reference in a new issue