From 31f76cd5b361c02de545dc18c5b0dd6662e949e2 Mon Sep 17 00:00:00 2001 From: Alexander Baryshnikov Date: Fri, 11 Sep 2020 20:19:33 +0800 Subject: [PATCH] debian - fix rights --- bundle/debian/postinstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/debian/postinstall.sh b/bundle/debian/postinstall.sh index ecca49f..ccf2ade 100755 --- a/bundle/debian/postinstall.sh +++ b/bundle/debian/postinstall.sh @@ -7,6 +7,6 @@ if ! id -u ${RUNNING_USER}; then echo "Creating user ${RUNNING_USER}..." useradd -M -c "${RUNNING_USER} dummy user" -r -s /bin/nologin ${RUNNING_USER} fi - +chown -R nano-run:nano-run /var/nano-run/ systemctl enable "${SERVICE}".service || echo "failed to enable service" systemctl start "${SERVICE}".service || echo "failed to start service"