This commit is contained in:
Lennart J. Kurzweg (Nx2)
2026-04-23 23:09:24 +02:00
parent 47f12834c1
commit e496c29101
5 changed files with 73 additions and 56 deletions

View File

@@ -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)