From 5d4cad69a6bc3679ee89bf4f82cfe597d1360dfc Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Sat, 4 Jan 2020 09:10:55 +0100 Subject: [PATCH] authd, todod: updated service files. --- services/authd.spec | 13 +++++-------- services/kanban.spec | 8 -------- services/todod.spec | 7 +++++++ 3 files changed, 12 insertions(+), 16 deletions(-) delete mode 100644 services/kanban.spec create mode 100644 services/todod.spec diff --git a/services/authd.spec b/services/authd.spec index 6ebddb5..cb7c11a 100644 --- a/services/authd.spec +++ b/services/authd.spec @@ -1,17 +1,14 @@ name: authd -command: authd -K jwt_key -u passwd -g group +command: authd -K jwt_key -s users user: authd provides: auth %file /run/ipc name: IPC directory - command: install -d -m6777 /run/ipc + creation-command: install -d -m6777 /run/ipc %file jwt_key name: JWT key creation-command: head -c 64 /dev/urandom | base64 > jwt_key -%file passwd - name: passwd file - command: touch passwd -%file group - name: group file - command: touch group +%file users + name: users + creation-command: install -d -m700 users diff --git a/services/kanban.spec b/services/kanban.spec deleted file mode 100644 index 29bc408..0000000 --- a/services/kanban.spec +++ /dev/null @@ -1,8 +0,0 @@ -name: kanband -command: kanband -k ${AUTHD_ROOT}/jwt_key -S data -user: kanband -consumes: auth - -%file data - name: storage directory - creation-command: mkdir -p data && chown kanband:kanband data diff --git a/services/todod.spec b/services/todod.spec new file mode 100644 index 0000000..e1a32fd --- /dev/null +++ b/services/todod.spec @@ -0,0 +1,7 @@ +name: todod +command: todod -K ${AUTH_ROOT}/jwt_key -s data +consumes: auth + +%file data + name: storage directory + creation-command: mkdir -p data