mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
Fix some spelling errors
This commit is contained in:
@@ -7,7 +7,7 @@ Full featured and highly configurable SFTP server software
|
|||||||
|
|
||||||
- Each account is chrooted to his Home Dir
|
- Each account is chrooted to his Home Dir
|
||||||
- SFTP accounts are virtual accounts stored in a "data provider"
|
- 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
|
- Public key and password authentication
|
||||||
- Quota support: accounts can have individual quota expressed as max number of files and max total size
|
- 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
|
- Bandwidth throttling is supported, with distinct settings for upload and download
|
||||||
|
|||||||
@@ -21,12 +21,12 @@ func initializeSQLiteProvider(basePath string) error {
|
|||||||
dbPath := filepath.Join(basePath, config.Name)
|
dbPath := filepath.Join(basePath, config.Name)
|
||||||
fi, err := os.Stat(dbPath)
|
fi, err := os.Stat(dbPath)
|
||||||
if err != nil {
|
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")
|
" a database before starting sftpgo")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if fi.Size() == 0 {
|
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")
|
" a database before starting sftpgo")
|
||||||
}
|
}
|
||||||
connectionString = fmt.Sprintf("file:%v?cache=shared", dbPath)
|
connectionString = fmt.Sprintf("file:%v?cache=shared", dbPath)
|
||||||
|
|||||||
Reference in New Issue
Block a user