Fixed sub-call (su -l), added dialog
This commit is contained in:
1 parent
b1fe124028
commit
4d1ac99ac3
3 files changed
+3
-3
No files matched your search
Executable → Regular
File mode changed.
Executable → Regular
+3
-3
@@ -4,7 +4,7 @@
|
|||||||
# This script can be called multiple times
|
# This script can be called multiple times
|
||||||
# Copyright (C) 2018 Andreas Fendt - All Rights Reserved
|
# Copyright (C) 2018 Andreas Fendt - All Rights Reserved
|
||||||
# Permission to copy and modify is granted under the MIT license
|
# 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
|
script=/tmp/install-script
|
||||||
cat > $script << 'EOL'
|
cat > $script << 'EOL'
|
||||||
@@ -61,7 +61,7 @@ apt-get dist-upgrade -y
|
|||||||
apt-get autoclean -y
|
apt-get autoclean -y
|
||||||
|
|
||||||
# install default packages
|
# 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
|
pip install git+https://github.com/jeffkaufman/icdiff.git
|
||||||
|
|
||||||
# get users
|
# get users
|
||||||
@@ -75,7 +75,7 @@ for user in $users; do
|
|||||||
|
|
||||||
# run install and configuration scripts
|
# run install and configuration scripts
|
||||||
for target in install-ohmyzsh install-fzf configure-vim; do
|
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
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Executable → Regular
File mode changed.
Reference in new issue
Block a user