mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
Use os.TempDir() for temporary directory in default path
This commit is contained in:
committed by
Michael Eischer
parent
1172d7e068
commit
223520b964
@@ -27,7 +27,7 @@ var cmdRoot = &cobra.Command{
|
||||
}
|
||||
|
||||
var server = restserver.Server{
|
||||
Path: "/tmp/restic",
|
||||
Path: filepath.Join(os.TempDir(), "restic"),
|
||||
Listen: ":8000",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user