update cmd run to wait
This commit is contained in:
parent
2b94bc01ec
commit
fd5a5fcd1c
5
main.go
5
main.go
@ -24,8 +24,11 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func downloadGeoDB() {
|
func downloadGeoDB() {
|
||||||
|
log.Println("start download new geoip db")
|
||||||
cmd := exec.Command("/usr/bin/download-geodb.sh")
|
cmd := exec.Command("/usr/bin/download-geodb.sh")
|
||||||
err := cmd.Run()
|
cmd.Start()
|
||||||
|
|
||||||
|
err := cmd.Wait()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("command run fail:: %v \n", err)
|
log.Printf("command run fail:: %v \n", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user