dot

packages and services management
Log | Files | Refs | README

commit ab2f89be5aa2fc21befea60716a51665a0b9df04
parent b1c0807889fc5f74b24186af5c03b868d60cc4bb
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 19 Jun 2018 11:23:31 +0200

configure: un-clutter ~root home directory

Diffstat:
Mconfigure | 20+++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/configure b/configure @@ -3,8 +3,6 @@ cd "$(dirname "$0")" -mkdir -p "$HOME/run" - mkdir -p "$HOME/.config/enchive" ln -fs "/mnt/key/enchive.pub" "$HOME/.config/enchive/enchive.pub" ln -fs "/mnt/key/enchive.sec" "$HOME/.config/enchive/enchive.sec" @@ -14,17 +12,17 @@ cp "$PWD/ssh/authorized_keys" "$HOME/.ssh/authorized_keys" ln -fs "$PWD/ssh/config" "$HOME/.ssh/config" mkdir -p "$HOME/.config" -mkdir -p "$HOME/.mblaze/" -ln -fs "$PWD/mblaze" "$HOME/.mblaze/profile" ln -fs "$PWD/profile" "$HOME/.profile" -ln -fs "$PWD/mpoprc" "$HOME/.mpoprc" -ln -fs "$PWD/msmtprc" "$HOME/.msmtprc" -ln -fs "$PWD/xinitrc" "$HOME/.xinitrc" ln -fs "$PWD/git" "$HOME/.config" ! git clone git://josuah.net/bin "$HOME/bin" -[ "$(whoami)" = root ] || exit 0 - -! git clone git://josuah.net/pack "$HOME/pack" -! git clone git://josuah.net/svdir "$HOME/svdir" +if test "$(whoami)" = root +then ! git clone git://josuah.net/pack "/etc/pack" + ! git clone git://josuah.net/svdir "/etc/s6-rc" +else mkdir -p "$HOME/.mblaze/" + ln -fs "$PWD/mblaze" "$HOME/.mblaze/profile" + ln -fs "$PWD/mpoprc" "$HOME/.mpoprc" + ln -fs "$PWD/msmtprc" "$HOME/.msmtprc" + ln -fs "$PWD/xinitrc" "$HOME/.xinitrc" +fi