made UID/GID of configureable with env variables

see #216
This commit is contained in:
Bernhard B
2022-02-19 11:33:18 +01:00
parent ba7e2358c5
commit 6ce236a908
3 changed files with 8 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ func main() {
log.Fatal("Couldn't create fifo with name ", fifoPathname, ": ", err.Error())
}
_, err = exec.Command("chown", "1000:1000", fifoPathname).Output()
_, err = exec.Command("chown", "${SIGNAL_CLI_UID}:${SIGNAL_CLI_GID}", fifoPathname).Output()
if err != nil {
log.Fatal("Couldn't change permissions of fifo with name ", fifoPathname, ": ", err.Error())
}