mirror of
https://github.com/gryf/vmstrap.git
synced 2025-12-19 04:20:26 +01:00
Replace non working redirections with tee
This commit is contained in:
@@ -14,10 +14,9 @@ sudo yum install -y $PGS
|
|||||||
sudo yum -y clean all
|
sudo yum -y clean all
|
||||||
|
|
||||||
# 4. set default editor
|
# 4. set default editor
|
||||||
sudo cat <<EOF >>/etc/profile.d/vim.sh
|
echo 'export VISUAL="vim"' | sudo tee /etc/profile.d/vim.sh
|
||||||
export VISUAL="vim"
|
echo 'export EDITOR="vim"' | sudo tee -a /etc/profile.d/vim.sh
|
||||||
export EDITOR="vim"
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# 5. install tools from pypi
|
# 5. install tools from pypi
|
||||||
if $(pip list |grep -e rainbow -e remote-pdb|wc -l|grep -qv 2); then
|
if $(pip list |grep -e rainbow -e remote-pdb|wc -l|grep -qv 2); then
|
||||||
@@ -42,7 +41,7 @@ fi
|
|||||||
|
|
||||||
# make current user sudo passwordless
|
# make current user sudo passwordless
|
||||||
if [ -z "$(sudo grep "${USER}" /etc/sudoers)" ]; then
|
if [ -z "$(sudo grep "${USER}" /etc/sudoers)" ]; then
|
||||||
sudo "echo ${USER} ALL = (ALL) NOPASSWD: ALL >> /etc/sudoers"
|
echo "${USER} ALL = (ALL) NOPASSWD: ALL" | sudo tee -a /etc/sudoers
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# clone devstack
|
# clone devstack
|
||||||
|
|||||||
Reference in New Issue
Block a user