From 63c9c2b0363f5840676ea8046468998f2be486dc Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 13 Jun 2022 23:24:42 +0400 Subject: [PATCH] Okay, without dynamically linked libc it gets permission denied error when running bash. --- Makefile | 2 +- init/systemd/dwelling-radio.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7ed0c96..586aa8c 100755 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ SYSDDIR_=${shell pkg-config systemd --variable=systemdsystemunitdir} SYSDDIR=${SYSDDIR_:/%=%} DESTDIR=/ -LDFLAGS=-ldflags "-s -w" -tags osusergo,netgo +LDFLAGS=-ldflags "-s -w" all: ${TARGET} diff --git a/init/systemd/dwelling-radio.service b/init/systemd/dwelling-radio.service index 23d9d2a..857424e 100755 --- a/init/systemd/dwelling-radio.service +++ b/init/systemd/dwelling-radio.service @@ -10,7 +10,7 @@ ExecStart=/usr/bin/dwelling-radio -conf /etc/dwelling/radio.yaml ReadOnlyPaths=/ NoExecPaths=/ -ExecPaths=/usr/bin/dwelling-radio /usr/bin/bash /usr/bin/tail /usr/bin/head /usr/bin/cut +ExecPaths=/usr/bin/dwelling-radio /usr/bin/bash /usr/bin/tail /usr/bin/head /usr/bin/cut /usr/lib64 LogsDirectory=dwelling-radio RuntimeDirectory=dwelling-radio