dot

packages and services management
Log | Files | Refs | README

commit f0503a17e16dbd753c8aa8f2b79951bd57fca875
parent d940cc0883a63c01218f1f9f5c3f2599b8b21215
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 12 Jun 2018 14:35:27 +0200

more users

Diffstat:
Dbootstrap | 15---------------
Mconfigure | 12++++++++++--
Muser/collectd/add | 2+-
Auser/dns/add | 3+++
Auser/git/add | 5+++++
Rgit/git-shell-commands/help -> user/git/git-shell-commands/help | 0
Rgit/git-shell-commands/init -> user/git/git-shell-commands/init | 0
Muser/irc/add | 2+-
Muser/mail/add | 9+--------
Muser/qmail/add | 14+++++++-------
10 files changed, 28 insertions(+), 34 deletions(-)

diff --git a/bootstrap b/bootstrap @@ -1,15 +0,0 @@ -#!/bin/sh -ex -# install minimal base system: mk(1) rc(1), svdir and pack - -cd "$(dirname $0)" - -! git clone git://josuah.net/pack $HOME/pack -! git clone git://josuah.net/svdir $HOME/svdir - -mkdir -p /9 -! git clone git://git.suckless.org/9base /9/base - -mkdir -p /9/etc -cp -f rcmain /9/etc/rcmain -cd /9/base -make PLAN9=/9 PREFIX=/9 install diff --git a/configure b/configure @@ -1,6 +1,8 @@ #!/bin/sh -ex # install configuration files with symlinks and clone bin +cd $(dirname $0) + mkdir -p $HOME/run mkdir -p $HOME/.config/enchive @@ -11,8 +13,6 @@ mkdir -p $HOME/.gnupg ln -fs /mnt/key/pubring.gpg $HOME/.gnupg/pubring.gpg ln -fs /mnt/key/secring.gpg $HOME/.gnupg/secring.gpg -cd $(dirname $0) - mkdir -p $HOME/.ssh cp $PWD/ssh/authorized_keys $HOME/.ssh/authorized_keys ln -fs $PWD/ssh/config $HOME/.ssh/config @@ -25,3 +25,11 @@ ln -fs $PWD/mpoprc $HOME/.mpoprc ln -fs $PWD/msmtprc $HOME/.msmtprc ln -fs $PWD/xinitrc $HOME/.xinitrc ln -fs $PWD/git $HOME/.config + +[ "$(whoami)" = root ] || exit 0 + +! git clone git://josuah.net/pack $HOME/pack +! git clone git://josuah.net/svdir $HOME/svdir + +mkdir -p /9 +! git clone git://git.suckless.org/9base /9/base diff --git a/user/collectd/add b/user/collectd/add @@ -1,3 +1,3 @@ #!/9/bin/rc -e -user add -s /sbin/nologin -d /home/collectd collectd +user add -d /home/collectd -s /sbin/nologin collectd diff --git a/user/dns/add b/user/dns/add @@ -0,0 +1,3 @@ +#!/9/bin/rc -e + +user add dns diff --git a/user/git/add b/user/git/add @@ -0,0 +1,5 @@ +#!/9/bin/rc -e + +user add -d /home/git -s `{which git-shell} git + +cp -R `{dirname $0}^/git-shell-commands /home/git diff --git a/git/git-shell-commands/help b/user/git/git-shell-commands/help diff --git a/git/git-shell-commands/init b/user/git/git-shell-commands/init diff --git a/user/irc/add b/user/irc/add @@ -3,6 +3,6 @@ user add -s /home/irc/attach -d /home/irc irc -cp "$(dirname "$0")/attach" /home/irc/attach +cp `{dirname $0}^/attach /home/irc/attach chown irc /home/irc/attach chmod +x /home/irc/attach diff --git a/user/mail/add b/user/mail/add @@ -1,10 +1,3 @@ #!/9/bin/rc -e -user add -s /home/mail/attach -d /home/mail mail - -printf '#!/9/bin/rc -e -' >/home/mail/attach - -chown mail /home/mail/attach -chmod +x /home/mail/attach -chown 600 /home/mail +user add -d /home/mail -s /home/mail/attach mail diff --git a/user/qmail/add b/user/qmail/add @@ -1,12 +1,12 @@ #!/9/bin/rc group add nofiles -user add -g nofiles -d /home/qmail/alias -s `{whatis true} alias -user add -g nofiles -d /home/qmail -s `{whatis true} qmaild -user add -g nofiles -d /home/qmail -s `{whatis true} qmaill -user add -g nofiles -d /home/qmail -s `{whatis true} qmailp +user add -g nofiles -d /home/qmail/alias -s `{whatis true} alias +user add -g nofiles -d /home/qmail -s `{whatis true} qmaild +user add -g nofiles -d /home/qmail -s `{whatis true} qmaill +user add -g nofiles -d /home/qmail -s `{whatis true} qmailp group add qmail -user add -g qmail -d /home/qmail -s `{whatis true} qmailq -user add -g qmail -d /home/qmail -s `{whatis true} qmailr -user add -g qmail -d /home/qmail -s `{whatis true} qmails +user add -g qmail -d /home/qmail -s `{whatis true} qmailq +user add -g qmail -d /home/qmail -s `{whatis true} qmailr +user add -g qmail -d /home/qmail -s `{whatis true} qmails