Disable mysql support

This commit is contained in:
Manfred Touron 2017-11-14 01:28:18 +01:00
parent 9253b9dd60
commit 2cc91bf681
2 changed files with 5 additions and 4 deletions

View file

@ -5,6 +5,7 @@
* Improve versionning (static VERSION + dynamic GIT_* info)
* Configuration management (backup + restore)
* Implement Exit (fix [#6](https://github.com/moul/sshportal/pull/6))
* Disable mysql support (not fully working right now)
## 1.0.0 (2017-11-14)

View file

@ -52,11 +52,11 @@ func main() {
Name: "demo",
Usage: "*unsafe* - demo mode: accept all connections",
},
cli.StringFlag{
/*cli.StringFlag{
Name: "db-driver",
Value: "sqlite3",
Usage: "GORM driver (sqlite3, mysql)",
},
Usage: "GORM driver (sqlite3)",
},*/
cli.StringFlag{
Name: "db-conn",
Value: "./sshportal.db",
@ -79,7 +79,7 @@ func main() {
}
func server(c *cli.Context) error {
db, err := gorm.Open(c.String("db-driver"), c.String("db-conn"))
db, err := gorm.Open("sqlite3", c.String("db-conn"))
if err != nil {
return err
}