From b755bac4fa99839fbb6be555b9ec93dad41ba38d Mon Sep 17 00:00:00 2001 From: hc Date: Tue, 22 Oct 2024 11:54:29 +0800 Subject: udpate --- others/vm.sh2 | 2 +- setup.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/others/vm.sh2 b/others/vm.sh2 index 029051e..f6f3e65 100755 --- a/others/vm.sh2 +++ b/others/vm.sh2 @@ -133,7 +133,7 @@ case "$1" in echo ' - sudo xfs_growfs /' >> user-data echo ' - sudo dnf install -y git' >> user-data echo ' - git clone https://git.0nom.ch/setup' >> user-data - echo ' - ./setup/setup.sh' >> user-data + echo ' - sudo ./setup/setup.sh' >> user-data echo ' - touch /home/fedora/runcmd_done' >> user-data echo -e "instance-id: iid-fedora-vm\nlocal-hostname: fedora-cloudimg" > meta-data diff --git a/setup.sh b/setup.sh index a53fe40..651105c 100755 --- a/setup.sh +++ b/setup.sh @@ -54,10 +54,11 @@ set statusline=%F " shows full file path EOF -[ -f ~/.bashrc ] || tee -a ~/.bashrc > /dev/null << EOF +tee -a ~/.bashrc > /dev/null << EOF LS_COLORS=$LS_COLORS:'di=38;5;135:' ; export LS_COLORS PS1='[\[\033[01;32m\]\u\[\033[00m\]@\h \[\033[38;5;135m\]\W\[\033[00m\]]\$ ' EOF +source ~/.bashrc sudo timedatectl set-timezone Asia/Singapore -- cgit v1.2.3-70-g09d2