dot

packages and services management
Log | Files | Refs | README

commit 231fa374620d7050cdee96eeb7fba132be41fe24
parent 4bf1e463339c89a46a5ccbd3be4a96a8b7b124a9
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 22 Jul 2018 23:17:02 +0200

users in /var

Diffstat:
Muser/collectd/add | 6+++---
Muser/git/add | 6+++---
Muser/qmail/add | 16++++++++--------
Muser/srv/add | 8+++-----
Muser/tor/add | 7+++----
Muser/u9fs/add | 7+++----
Muser/venti/add | 7+++----
7 files changed, 26 insertions(+), 31 deletions(-)

diff --git a/user/collectd/add b/user/collectd/add @@ -1,7 +1,7 @@ #!/bin/sh -ex # hold the collectd stats -mkdir -p /data/collectd -useradd -d /data/collectd -s "$(command -v true)" collectd +mkdir -p /var/collectd +useradd -d /var/collectd -s "$(command -v true)" collectd -chown -R collectd /data/collectd +chown -R collectd /var/collectd diff --git a/user/git/add b/user/git/add @@ -1,6 +1,6 @@ #!/bin/sh -ex # git repositories -mkdir -p /data/git/ -useradd -d /data/git/ git -chown -R git /data/git/ +mkdir -p /home/git/ +useradd -d /home/git/ git +chown -R git /home/git/ diff --git a/user/qmail/add b/user/qmail/add @@ -1,15 +1,15 @@ #!/bin/sh -ex # qmail control and queues -mkdir -p /var/s6/qmail-send/data/ +mkdir -p /var/qmail groupadd nofiles -useradd -g nofiles -d /var/s6/qmail-send/data/alias -s "$(which true)" alias -useradd -g nofiles -d /var/s6/qmail-send/data -s "$(which true)" qmaild -useradd -g nofiles -d /var/s6/qmail-send/data -s "$(which true)" qmaill -useradd -g nofiles -d /var/s6/qmail-send/data -s "$(which true)" qmailp +useradd -g nofiles -d /var/qmail/alias -s "$(which true)" alias +useradd -g nofiles -d /var/qmail -s "$(which true)" qmaild +useradd -g nofiles -d /var/qmail -s "$(which true)" qmaill +useradd -g nofiles -d /var/qmail -s "$(which true)" qmailp groupadd qmail -useradd -g qmail -d /var/s6/qmail-send/data -s "$(which true)" qmailq -useradd -g qmail -d /var/s6/qmail-send/data -s "$(which true)" qmailr -useradd -g qmail -d /var/s6/qmail-send/data -s "$(which true)" qmails +useradd -g qmail -d /var/qmail -s "$(which true)" qmailq +useradd -g qmail -d /var/qmail -s "$(which true)" qmailr +useradd -g qmail -d /var/qmail -s "$(which true)" qmails diff --git a/user/srv/add b/user/srv/add @@ -1,7 +1,5 @@ #!/bin/sh -ex -mkdir -p /data/srv - -useradd -d /data/srv srv - -chown -R srv /data/srv +mkdir -p /var/www +useradd -d /var/www www +chown -R www /var/www diff --git a/user/tor/add b/user/tor/add @@ -1,7 +1,6 @@ #!/bin/sh -ex # tor router and hidden services -mkdir -p /data/tor/ -useradd -d /data/tor/ tor - -chown -R /data/tor/ +mkdir -p /var/tor/ +useradd -d /var/tor/ tor +chown -R /var/tor/ diff --git a/user/u9fs/add b/user/u9fs/add @@ -1,7 +1,6 @@ #!/bin/sh -ex # files served through 9P by u9fs -mkdir -p /data/u9fs/ -useradd -d /data/u9fs/ u9fs - -chown -R u9fs /data/u9fs/ +mkdir -p /var/u9fs +useradd -d /var/u9fs u9fs +chown -R u9fs /var/u9fs diff --git a/user/venti/add b/user/venti/add @@ -1,7 +1,6 @@ #!/bin/sh -ex # venti storage server -useradd -d /data/venti/ venti -mkdir -p /data/venti/ - -chown -R venti /data/venti/ +useradd -d /var/venti venti +mkdir -p /var/venti +chown -R venti /var/venti