From 4d1ac99ac3dfc50aade1e053a6fdec6f6329914d Mon Sep 17 00:00:00 2001 From: Andreas Fendt Date: Fri, 28 Dec 2018 19:52:10 +0100 Subject: [PATCH] Fixed sub-call (su -l), added dialog --- .gitignore | 0 install-debian.sh | 6 +++--- unattended-upgrades.sh | 0 3 files changed, 3 insertions(+), 3 deletions(-) mode change 100755 => 100644 .gitignore mode change 100755 => 100644 install-debian.sh mode change 100755 => 100644 unattended-upgrades.sh diff --git a/.gitignore b/.gitignore old mode 100755 new mode 100644 diff --git a/install-debian.sh b/install-debian.sh old mode 100755 new mode 100644 index 4ecf7b9..fcf007b --- a/install-debian.sh +++ b/install-debian.sh @@ -4,7 +4,7 @@ # This script can be called multiple times # Copyright (C) 2018 Andreas Fendt - All Rights Reserved # Permission to copy and modify is granted under the MIT license -# Last revised 28.04.2018 +# Last revised 28.12.2018 script=/tmp/install-script cat > $script << 'EOL' @@ -61,7 +61,7 @@ apt-get dist-upgrade -y apt-get autoclean -y # install default packages -apt-get install -y fonts-powerline python-pip zsh sudo mc tree pv vim bash-completion wget git htop iotop iftop nmon apt-file aptitude hexedit tmux +apt-get install -y apt-file aptitude bash-completion dialog fonts-powerline git hexedit htop iftop iotop mc nmon pv python-pip sudo tmux tree vim wget zsh pip install git+https://github.com/jeffkaufman/icdiff.git # get users @@ -75,7 +75,7 @@ for user in $users; do # run install and configuration scripts for target in install-ohmyzsh install-fzf configure-vim; do - su -c "$script $target" -s /bin/bash $user + su -l -c "$script $target" -s /bin/bash $user done done diff --git a/unattended-upgrades.sh b/unattended-upgrades.sh old mode 100755 new mode 100644