refactor: refactoring of code, update docs

This commit is contained in:
2024-01-21 15:18:35 +01:00
parent e19643ebcb
commit 620801cb99
5 changed files with 33 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ func RestoreDatabase(file string) {
dbPort = os.Getenv("DB_PORT")
storagePath = os.Getenv("STORAGE_PATH")
if file == "" {
utils.Fatal("Error required --file")
utils.Fatal("Error, file required")
}
if os.Getenv("DB_HOST") == "" || os.Getenv("DB_NAME") == "" || os.Getenv("DB_USERNAME") == "" || os.Getenv("DB_PASSWORD") == "" || file == "" {