diff --git a/README.md b/README.md index 312eac14..9f7f4cbe 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Full featured and highly configurable SFTP server software - Each account is chrooted to his Home Dir - SFTP accounts are virtual accounts stored in a "data provider" -- SQLite, MySQL and PostgreSQL data providers are supported. The `Provider` interface could be extented to support non SQL backends too +- SQLite, MySQL and PostgreSQL data providers are supported. The `Provider` interface could be extended to support non SQL backends too - Public key and password authentication - Quota support: accounts can have individual quota expressed as max number of files and max total size - Bandwidth throttling is supported, with distinct settings for upload and download @@ -199,4 +199,4 @@ Some code was initially taken from [Pterodactyl sftp server](https://github.com/ ## License -GNU GPLv3 \ No newline at end of file +GNU GPLv3 diff --git a/dataprovider/sqlite.go b/dataprovider/sqlite.go index 0c0af379..e1f0b690 100644 --- a/dataprovider/sqlite.go +++ b/dataprovider/sqlite.go @@ -21,12 +21,12 @@ func initializeSQLiteProvider(basePath string) error { dbPath := filepath.Join(basePath, config.Name) fi, err := os.Stat(dbPath) if err != nil { - logger.Warn(logSender, "sqlite database file does not exists, please be sure to create and inizialiaze"+ + logger.Warn(logSender, "sqlite database file does not exists, please be sure to create and initialize"+ " a database before starting sftpgo") return err } if fi.Size() == 0 { - return errors.New("sqlite database file is invalid, please be sure to create and inizialiaze" + + return errors.New("sqlite database file is invalid, please be sure to create and initialize" + " a database before starting sftpgo") } connectionString = fmt.Sprintf("file:%v?cache=shared", dbPath)