From 4cb4c12a3550e30341f5b4f997e2f957b071b2f6 Mon Sep 17 00:00:00 2001 From: afonso Date: Sun, 12 May 2024 13:49:26 +0100 Subject: [PATCH] makefile fail and continue --- Makefile | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index f275837..6583311 100644 --- a/Makefile +++ b/Makefile @@ -35,29 +35,34 @@ $(BINDIR): mkdir -p $(BINDIR) users: - sudo useradd -M djumbaiq - sudo useradd -M djumbaid - sudo groupadd djumbai_queue - sudo groupadd djumbai_send - sudo usermod -aG djumbai_queue djumbaiq - sudo usermod -aG djumbai_queue djumbaid - sudo usermod -aG djumbai_send djumbaid - sudo usermod -aG djumbai_send root + -sudo useradd -M djumbaiq + -sudo useradd -M djumbaid + -sudo groupadd djumbai_queue + -sudo groupadd djumbai_send + -sudo usermod -aG djumbai_queue djumbaiq + -sudo usermod -aG djumbai_queue djumbaid + -sudo usermod -aG djumbai_send djumbaid + -sudo usermod -aG djumbai_send root permissions: - sudo chown djumbaiq $(BINDIR)/djumbai_enqueue/djumbai_enqueue - sudo chmod u+s $(BINDIR)/djumbai_enqueue/djumbai_enqueue - sudo chown djumbaid $(BINDIR)/djumbai_dequeue/djumbai_dequeue - sudo chmod u+s $(BINDIR)/djumbai_dequeue/djumbai_dequeue - sudo chown root $(BINDIR)/djumbai_send/djumbai_send - sudo chmod u+s $(BINDIR)/djumbai_send/djumbai_send + -sudo chown djumbaiq $(BINDIR)/djumbai_enqueue/djumbai_enqueue + -sudo chmod u+s $(BINDIR)/djumbai_enqueue/djumbai_enqueue + -sudo chown djumbaid $(BINDIR)/djumbai_dequeue/djumbai_dequeue + -sudo chmod u+s $(BINDIR)/djumbai_dequeue/djumbai_dequeue + -sudo chown root $(BINDIR)/djumbai_send/djumbai_send + -sudo chmod u+s $(BINDIR)/djumbai_send/djumbai_send directories: - sudo -u root -g djumbai mkdir /opt/djumbai - sudo -u root -g djumbai mkdir /opt/djumbai/fifos - sudo -u root -g djumbai mkdir /opt/djumbai/user - sudo -u root -g djumbai mkdir /opt/djumbai/group + -sudo -u root -g djumbai mkdir /opt/djumbai + -sudo -u root -g djumbai mkdir /opt/djumbai/fifos + -sudo -u root -g djumbai mkdir /opt/djumbai/user + -sudo -u root -g djumbai mkdir /opt/djumbai/group + +setup: + -users + -permissions + -directories clean: