From 69fce7924c7172615003870a2203fc1b892062d1 Mon Sep 17 00:00:00 2001 From: akanealw Date: Thu, 14 Mar 2024 20:18:55 -0500 Subject: [PATCH] changed input and bash.bashrc queries --- proxmox/proxmox-pbs-essentials.sh | 15 ++++++--------- proxmox/proxmox-pve-essentials.sh | 15 ++++++--------- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/proxmox/proxmox-pbs-essentials.sh b/proxmox/proxmox-pbs-essentials.sh index 2f2aaaa..7f2cfae 100755 --- a/proxmox/proxmox-pbs-essentials.sh +++ b/proxmox/proxmox-pbs-essentials.sh @@ -16,23 +16,20 @@ apt-get upgrade -y apt-get install -y htop ncdu proxmox-backup sudo pwgen curl wget zip unzip git man-db cifs-utils nfs-common ntfs-3g parted libtalloc2 libwbclient0 net-tools gnupg apt-transport-https tmux gdisk bash-completion # set input preferences -if [[ ! -f /etc/inputrc.bak ]] ; then - cp /etc/inputrc /etc/inputrc.bak > /dev/null 2>&1 +if [[ ! -f /etc/inputrc.default ]] + then wget -qO /etc/inputrc.default http://192.168.1.50/files/debian/inputrc.default fi rm /etc/inputrc > /dev/null 2>&1 -cp /etc/inputrc.bak /etc/inputrc +cp /etc/inputrc.default /etc/inputrc echo "" >> /etc/inputrc echo "set completion-ignore-case On" >> /etc/inputrc # set bash preferences and aliases -if [[ -f /etc/bash.bashrc.default ]] ; then - mv /etc/bash.bashrc.default /etc/bash.bashrc.bak > /dev/null 2>&1 -fi -if [[ ! -f /etc/bash.bashrc.bak ]] ; then - cp /etc/bash.bashrc /etc/bash.bashrc.bak > /dev/null 2>&1 +if [[ ! -f /etc/bash.bashrc.default ]] + then wget -qO /etc/bash.bashrc.default http://192.168.1.50/files/debian/bash.bashrc.default fi rm /etc/bash.bashrc > /dev/null 2>&1 -cp /etc/bash.bashrc.bak /etc/bash.bashrc +cp /etc/bash.bashrc.default /etc/bash.bashrc echo "" >> /etc/bash.bashrc echo "# custom settings and aliases" >> /etc/bash.bashrc echo "set -o noclobber" >> /etc/bash.bashrc diff --git a/proxmox/proxmox-pve-essentials.sh b/proxmox/proxmox-pve-essentials.sh index 6f42dfa..14bd77f 100755 --- a/proxmox/proxmox-pve-essentials.sh +++ b/proxmox/proxmox-pve-essentials.sh @@ -25,23 +25,20 @@ pveam update rm /etc/motd > /dev/null 2>&1 # set input preferences -if [[ ! -f /etc/inputrc.bak ]] ; then - cp /etc/inputrc /etc/inputrc.bak > /dev/null 2>&1 +if [[ ! -f /etc/inputrc.default ]] + then wget -qO /etc/inputrc.default http://192.168.1.50/files/debian/inputrc.default fi rm /etc/inputrc > /dev/null 2>&1 -cp /etc/inputrc.bak /etc/inputrc +cp /etc/inputrc.default /etc/inputrc echo "" >> /etc/inputrc echo "set completion-ignore-case On" >> /etc/inputrc # set bash preferences and aliases -if [[ -f /etc/bash.bashrc.default ]] ; then - mv /etc/bash.bashrc.default /etc/bash.bashrc.bak > /dev/null 2>&1 -fi -if [[ ! -f /etc/bash.bashrc.bak ]] ; then - cp /etc/bash.bashrc /etc/bash.bashrc.bak > /dev/null 2>&1 +if [[ ! -f /etc/bash.bashrc.default ]] + then wget -qO /etc/bash.bashrc.default http://192.168.1.50/files/debian/bash.bashrc.default fi rm /etc/bash.bashrc > /dev/null 2>&1 -cp /etc/bash.bashrc.bak /etc/bash.bashrc +cp /etc/bash.bashrc.default /etc/bash.bashrc echo "" >> /etc/bash.bashrc echo "# custom settings and aliases" >> /etc/bash.bashrc echo "set -o noclobber" >> /etc/bash.bashrc