yeah
This commit is contained in:
@@ -12,11 +12,12 @@ import (
|
||||
)
|
||||
|
||||
type Access struct {
|
||||
User string `yaml:"user,omitempty"`
|
||||
Group string `yaml:"group,omitempty"`
|
||||
Groups string `yaml:"groups,omitempty"`
|
||||
Mode string `yaml:"mode"` // "read-only" or "read-write"
|
||||
ICS string `yaml:"ics,omitempty"`
|
||||
User string `yaml:"user,omitempty"`
|
||||
Users []string `yaml:"users,omitempty"`
|
||||
Group string `yaml:"group,omitempty"`
|
||||
Groups string `yaml:"groups,omitempty"`
|
||||
Mode string `yaml:"mode"` // "read-only" or "read-write"
|
||||
ICS string `yaml:"ics,omitempty"`
|
||||
}
|
||||
|
||||
type Calendar struct {
|
||||
@@ -85,7 +86,7 @@ type Config struct {
|
||||
|
||||
func ResolvePassword(password, passwordCmd string) (string, error) {
|
||||
if passwordCmd != "" {
|
||||
cmd := exec.Command("/bin/sh", "-c", passwordCmd)
|
||||
cmd := exec.Command("sh", "-c", passwordCmd)
|
||||
out, err := cmd.Output()
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("failed to run password command: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user