certificates: avoid error on noexec partition
This commit is contained in:
parent
1549a58892
commit
5c45bb5127
|
@ -11,25 +11,25 @@ func convOutput(in []byte, err error) (string, error) {
|
|||
|
||||
func GenerateCA() (string, error) {
|
||||
// Call the script and return its standard and error output
|
||||
cmd := exec.Command("./CA.sh", "-newca")
|
||||
cmd := exec.Command("/bin/bash", "./CA.sh", "-newca")
|
||||
|
||||
return convOutput(cmd.CombinedOutput())
|
||||
}
|
||||
|
||||
func GenerateCRL() (string, error) {
|
||||
cmd := exec.Command("./CA.sh", "-gencrl")
|
||||
cmd := exec.Command("/bin/bash", "./CA.sh", "-gencrl")
|
||||
|
||||
return convOutput(cmd.CombinedOutput())
|
||||
}
|
||||
|
||||
func (t Team) GenerateCert() (string, error) {
|
||||
cmd := exec.Command("./CA.sh", "-newclient", t.Name)
|
||||
cmd := exec.Command("/bin/bash", "./CA.sh", "-newclient", t.Name)
|
||||
|
||||
return convOutput(cmd.CombinedOutput())
|
||||
}
|
||||
|
||||
func (t Team) RevokeCert() (string, error) {
|
||||
cmd := exec.Command("./CA.sh", "-revoke", t.Name)
|
||||
cmd := exec.Command("/bin/bash", "./CA.sh", "-revoke", t.Name)
|
||||
|
||||
return convOutput(cmd.CombinedOutput())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user