|
|
@ -36,28 +36,9 @@ function install_host() { |
|
|
|
fi |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
#remove /etc/skel/.bashrc |
|
|
|
if [ -e /etc/skel/.bashrc ]; then |
|
|
|
rm /etc/skel/.bashrc |
|
|
|
fi |
|
|
|
|
|
|
|
ORIGINAL="ORIGINAL" |
|
|
|
declare -a arr=(/etc/bash.bashrc /etc/inputrc /etc/vim/vimrc) |
|
|
|
|
|
|
|
for i in "${arr[@]}"; do |
|
|
|
if [ ! -f "$i.$ORIGINAL" ]; then |
|
|
|
|
|
|
|
echo "$i needs installation $(basename $i)" |
|
|
|
mv "$i" "$i.$ORIGINAL" |
|
|
|
ln -s "$CURDIR/$(basename $i)" "$i" |
|
|
|
else |
|
|
|
echo "$i" already overriden |
|
|
|
fi |
|
|
|
done |
|
|
|
|
|
|
|
apt-get update |
|
|
|
apt-get install -y "${REQUIRED_PKGS[@]}" |
|
|
|
./init.sh |
|
|
|
fi |
|
|
|
|
|
|
|
} |
|
|
|