mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 14:43:52 +03:00
* Set dump file permission to 0600 * Typo
This commit is contained in:
parent
a00c932bbc
commit
2c5411b00c
1 changed files with 4 additions and 0 deletions
|
@ -96,6 +96,10 @@ func runDump(ctx *cli.Context) error {
|
||||||
log.Fatalf("Fail to save %s: %v", fileName, err)
|
log.Fatalf("Fail to save %s: %v", fileName, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := os.Chmod(fileName, 0600); err != nil {
|
||||||
|
log.Printf("Can't change file access permissions mask to 0600: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
log.Printf("Removing tmp work dir: %s", TmpWorkDir)
|
log.Printf("Removing tmp work dir: %s", TmpWorkDir)
|
||||||
os.RemoveAll(TmpWorkDir)
|
os.RemoveAll(TmpWorkDir)
|
||||||
log.Printf("Finish dumping in file %s", fileName)
|
log.Printf("Finish dumping in file %s", fileName)
|
||||||
|
|
Loading…
Reference in a new issue