mirror of
https://github.com/moul/sshportal.git
synced 2024-11-10 17:26:41 +08:00
Disable mysql support
This commit is contained in:
parent
9253b9dd60
commit
2cc91bf681
2 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
8
main.go
8
main.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue