summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xothers/vm.sh22
-rwxr-xr-xsetup.sh8
2 files changed, 5 insertions, 5 deletions
diff --git a/others/vm.sh2 b/others/vm.sh2
index 1f100d8..fe3eec0 100755
--- a/others/vm.sh2
+++ b/others/vm.sh2
@@ -131,7 +131,7 @@ case "$1" in
echo ' - sudo growpart /dev/sda 1' >> user-data
echo ' - sudo xfs_growfs /' >> user-data
- echo ' - sudo dnf install -y git' >> user-data
+ echo ' - sudo dnf install -y vim git' >> user-data
echo ' - cd /home/fedora' >> user-data
echo ' - git clone https://git.0nom.ch/setup' >> user-data
echo ' - sudo ./setup/setup.sh' >> user-data
diff --git a/setup.sh b/setup.sh
index c236955..ccad66f 100755
--- a/setup.sh
+++ b/setup.sh
@@ -4,16 +4,16 @@
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
cd "$SCRIPT_DIR" || exit
-bash ./core/ssh.sh || { echo "Failed to configure SSH"; exit 1; }
-bash ./core/vim.sh || { echo "Failed to configure Vim"; exit 1; }
-bash ./core/install-packages.sh || { echo "Failed to install packages"; exit 1; }
-
sudo tee -a /etc/bashrc > /dev/null << 'EOF2'
LS_COLORS=$LS_COLORS:'di=38;5;135:ex=00;32:' ; export LS_COLORS
PS1='[\[\033[01;32m\]\u\[\033[00m\]@\h \[\033[38;5;135m\]\W\[\033[00m\]]\$ '
EOF2
source /etc/bashrc
+bash ./core/ssh.sh || { echo "Failed to configure SSH"; exit 1; }
+bash ./core/vim.sh || { echo "Failed to configure Vim"; exit 1; }
+bash ./core/install-packages.sh || { echo "Failed to install packages"; exit 1; }
+
sudo timedatectl set-timezone Asia/Singapore
# add check fro each component