Skip to content

Commit

Permalink
Initial Production Release talkkonnect version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
talkkonnect committed Nov 13, 2021
1 parent b7f5c50 commit 4bceb2d
Show file tree
Hide file tree
Showing 38 changed files with 2,548 additions and 3,358 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Mozilla Public License Version 2.0
a separate file or files, that is not Covered Software.

1.8. "License"
means this document.
means this Config.

1.9. "Licensable"
means having the right to grant, to the maximum extent possible,
Expand Down
Binary file added audio/66963c80200bdcfaab5c400c01eb8920.mp3
Binary file not shown.
20 changes: 10 additions & 10 deletions autoprovision.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (
)

func autoProvision() error {
if len(TkID) < 8 {
if len(Config.Global.Software.AutoProvisioning.TkID) < 8 {
var err error
var macaddress []string
macaddress, err = getMacAddr()
Expand All @@ -53,25 +53,25 @@ func autoProvision() error {
if err != nil {
FatalCleanUp(err.Error())
}
TkID = re.ReplaceAllString(a, "")
Config.Global.Software.AutoProvisioning.TkID = re.ReplaceAllString(a, "")
}
}

if string(TkID[len(TkID)-4]) != ".xml" {
TkID = TkID + ".xml"
if string(Config.Global.Software.AutoProvisioning.TkID[len(Config.Global.Software.AutoProvisioning.TkID)-4]) != ".xml" {
Config.Global.Software.AutoProvisioning.TkID = Config.Global.Software.AutoProvisioning.TkID + ".xml"
}

if string(URL[len(URL)-1]) != "/" {
URL = URL + "/"
if string(Config.Global.Software.AutoProvisioning.URL[len(Config.Global.Software.AutoProvisioning.URL)-1]) != "/" {
Config.Global.Software.AutoProvisioning.URL = Config.Global.Software.AutoProvisioning.URL + "/"
}

if string(SaveFilePath[len(SaveFilePath)-1]) != "/" {
SaveFilePath = SaveFilePath + "/"
if string(Config.Global.Software.AutoProvisioning.SaveFilePath[len(Config.Global.Software.AutoProvisioning.SaveFilePath)-1]) != "/" {
Config.Global.Software.AutoProvisioning.SaveFilePath = Config.Global.Software.AutoProvisioning.SaveFilePath + "/"
}

fileURL := URL + TkID
fileURL := Config.Global.Software.AutoProvisioning.URL + Config.Global.Software.AutoProvisioning.TkID
log.Println("info: Trying to Autoprovision with URL: ", fileURL)
err := downloadFile(SaveFilePath, SaveFilename, fileURL)
err := downloadFile(Config.Global.Software.AutoProvisioning.SaveFilePath, Config.Global.Software.AutoProvisioning.SaveFilePath, fileURL)
if err != nil {
return fmt.Errorf("error: DownloadFile Module Returned an Error: %q", err.Error())
}
Expand Down
125 changes: 62 additions & 63 deletions avrecord.go

Large diffs are not rendered by default.

Loading

0 comments on commit 4bceb2d

Please sign in to comment.