Add apparmor profile generation and default apparmor profiles

This commit is contained in:
idk
2022-01-31 02:09:02 -05:00
parent 0fc85bd8d7
commit 240e135097
9 changed files with 593 additions and 13 deletions

View File

@ -11,7 +11,7 @@ import (
)
func (m *Client) generateMirrorJSON() (map[string]interface{}, error) {
path := filepath.Join(tbget.DOWNLOAD_PATH, "downloads.json")
path := filepath.Join(tbget.DOWNLOAD_PATH(), "downloads.json")
preBytes, err := ioutil.ReadFile(path)
if err != nil {
return nil, fmt.Errorf("GenerateMirrorJSON: %s", err)
@ -43,7 +43,7 @@ func (m *Client) GenerateMirrorJSON() (string, error) {
if err != nil {
return "", err
}
path := filepath.Join(tbget.DOWNLOAD_PATH, "downloads.json")
path := filepath.Join(tbget.DOWNLOAD_PATH(), "downloads.json")
preBytes, err := ioutil.ReadFile(path)
if err != nil {
return "", fmt.Errorf("GenerateMirrorJSONBytes: %s", err)