Finalized Client
This commit is contained in:
7
main.go
7
main.go
@@ -16,7 +16,7 @@ import (
|
||||
"git.nevets.tech/Steven/ezconf"
|
||||
)
|
||||
|
||||
var version = "1.1.0-beta"
|
||||
var version = "1.0.0"
|
||||
var build = "1"
|
||||
|
||||
var config *ezconf.Configuration
|
||||
@@ -38,7 +38,6 @@ func main() {
|
||||
|
||||
newDomainFlag := flag.String("new-domain", "example.com", "Domain to create new configs and directories for")
|
||||
newDomainDirFlag := flag.String("new-domain-dir", "/opt/certs/example.com", "Directory that certs will be stored in")
|
||||
localOnlyFlag := flag.Bool("local-only", false, "Local only")
|
||||
|
||||
installFlag := flag.Bool("install", false, "Install Certman")
|
||||
modeFlag := flag.String("mode", "client", "CertManager Mode [server, client]")
|
||||
@@ -98,7 +97,6 @@ Installation: certman -install -mode (mode) [-t] [-config /path/to/file]
|
||||
New Domain Options: certman -new-domain example.com [-new-domain-dir /path/to/certs]
|
||||
- new-domain Creates a new domain config
|
||||
- new-domain-dir Specifies directory for new domain certificates to be stored
|
||||
- local-only Don't create git repo
|
||||
|
||||
`, version, build)
|
||||
|
||||
@@ -109,9 +107,6 @@ New Domain Options: certman -new-domain example.com [-new-domain-dir /path/to/ce
|
||||
fmt.Printf("Creating new domain %s\n", *newDomainFlag)
|
||||
createNewDomainConfig(*newDomainFlag)
|
||||
createNewDomainCertsDir(*newDomainFlag, *newDomainDirFlag)
|
||||
if !*localOnlyFlag {
|
||||
//TODO create git repo
|
||||
}
|
||||
fmt.Println("Successfully created domain entry for " + *newDomainFlag + "\nUpdate config file as needed in /etc/certman/domains/" + *newDomainFlag + ".conf")
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user