dot

packages and services management
Log | Files | Refs | README

commit d36375cd3690e24f234f5222c5c9db5f7c288470
parent 62e139e2332138de93382b62aa8a81adbd170b3f
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon,  9 Jul 2018 00:06:15 +0200

adjust user home directories

Diffstat:
Mbin/s6 | 2+-
Mpack/qmail/build | 2+-
Muser/collectd/add | 6+++---
Muser/dns/add | 5+----
Muser/git/add | 6+++---
Muser/qmail/add | 16++++++++--------
Muser/srv/add | 6+++---
Muser/tor/add | 6+++---
Muser/u9fs/add | 6+++---
Muser/venti/add | 6+++---
10 files changed, 29 insertions(+), 32 deletions(-)

diff --git a/bin/s6 b/bin/s6 @@ -1,6 +1,6 @@ #!/bin/sh -e -service=/etc/s6/ +service=/s6/ export PATH="$PATH:/local/bin" case $1 in diff --git a/pack/qmail/build b/pack/qmail/build @@ -1,7 +1,7 @@ #!/bin/sh -ex export PATH=$PWD:$PATH -export DATA=/etc/s6/qmail/data +export DATA=/s6/qmail/data echo gcc -O2 -include /usr/include/errno.h >conf-cc echo "$DATA" >conf-qmail diff --git a/user/collectd/add b/user/collectd/add @@ -1,7 +1,7 @@ #!/bin/sh -e # hold the collectd stats -mkdir -p /home/collectd -useradd -d /home/collectd -s "$(command -v true)" collectd +mkdir -p /data/collectd +useradd -d /data/collectd -s "$(command -v true)" collectd -chown -R collectd /home/collectd +chown -R collectd /data/collectd diff --git a/user/dns/add b/user/dns/add @@ -1,7 +1,4 @@ #!/bin/sh -e # data directory for djbdns -mkdir -p /home/dns/ -useradd -d /home/dns/ dns - -chown -R dns /home/dns/ +useradd dns diff --git a/user/git/add b/user/git/add @@ -1,6 +1,6 @@ #!/bin/sh -e # git repositories -mkdir -p /home/git/ -useradd -d /home/git/ git -chown -R git /home/git/ +mkdir -p /data/git/ +useradd -d /data/git/ git +chown -R git /data/git/ diff --git a/user/qmail/add b/user/qmail/add @@ -1,15 +1,15 @@ #!/bin/sh -e # qmail control and queues -mkdir -p /home/qmail/ +mkdir -p /s6/qmail/data/ ! groupadd nofiles -useradd -g nofiles -d /home/qmail/alias/ -s "$(which true)" alias -useradd -g nofiles -d /home/qmail/ -s "$(which true)" qmaild -useradd -g nofiles -d /home/qmail/ -s "$(which true)" qmaill -useradd -g nofiles -d /home/qmail/ -s "$(which true)" qmailp +useradd -g nofiles -d /s6/qmail/data/alias/ -s "$(which true)" alias +useradd -g nofiles -d /s6/qmail/data/ -s "$(which true)" qmaild +useradd -g nofiles -d /s6/qmail/data/ -s "$(which true)" qmaill +useradd -g nofiles -d /s6/qmail/data/ -s "$(which true)" qmailp ! groupadd qmail -useradd -g qmail -d /home/qmail/ -s "$(which true)" qmailq -useradd -g qmail -d /home/qmail/ -s "$(which true)" qmailr -useradd -g qmail -d /home/qmail/ -s "$(which true)" qmails +useradd -g qmail -d /s6/qmail/data/ -s "$(which true)" qmailq +useradd -g qmail -d /s6/qmail/data/ -s "$(which true)" qmailr +useradd -g qmail -d /s6/qmail/data/ -s "$(which true)" qmails diff --git a/user/srv/add b/user/srv/add @@ -1,7 +1,7 @@ #!/bin/sh -ex -mkdir -p /home/srv +mkdir -p /data/srv -useradd -d /home/srv srv +useradd -d /data/srv srv -chown -R srv /home/srv +chown -R srv /data/srv diff --git a/user/tor/add b/user/tor/add @@ -1,7 +1,7 @@ #!/bin/sh -e # tor router and hidden services -mkdir -p /home/tor/ -useradd -d /home/tor/ tor +mkdir -p /data/tor/ +useradd -d /data/tor/ tor -chown -R /home/tor/ +chown -R /data/tor/ diff --git a/user/u9fs/add b/user/u9fs/add @@ -1,7 +1,7 @@ #!/bin/sh -e # files served through 9P by u9fs -mkdir -p /home/u9fs/ -useradd -d /home/u9fs/ u9fs +mkdir -p /data/u9fs/ +useradd -d /data/u9fs/ u9fs -chown -R u9fs /home/u9fs/ +chown -R u9fs /data/u9fs/ diff --git a/user/venti/add b/user/venti/add @@ -1,7 +1,7 @@ #!/bin/sh -e # venti storage server -useradd -d /home/venti/ venti -mkdir -p /home/venti/ +useradd -d /data/venti/ venti +mkdir -p /data/venti/ -chown -R venti /home/venti/ +chown -R venti /data/venti/