summaryrefslogtreecommitdiff
path: root/others/vm3/.config/cloud-init-generator/debian12.sh
diff options
context:
space:
mode:
authorhc <hc@email.ch>2025-01-26 12:14:06 +0800
committerhc <hc@email.ch>2025-01-26 12:14:06 +0800
commiteabf5b889b42ac79c021a692c6bcdb74fafa5c15 (patch)
treeb4e7ab0de8706274af346323cac79d0d57e110c5 /others/vm3/.config/cloud-init-generator/debian12.sh
parentff7f42e5b89d6c1cf664ae866f29f790132a7da7 (diff)
update
Diffstat (limited to 'others/vm3/.config/cloud-init-generator/debian12.sh')
-rwxr-xr-xothers/vm3/.config/cloud-init-generator/debian12.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/others/vm3/.config/cloud-init-generator/debian12.sh b/others/vm3/.config/cloud-init-generator/debian12.sh
index de0751f..07c3fb7 100755
--- a/others/vm3/.config/cloud-init-generator/debian12.sh
+++ b/others/vm3/.config/cloud-init-generator/debian12.sh
@@ -49,6 +49,10 @@ else
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\]]\$ '\''
EOF' \
+ --run-command 'tee -a /home/user/.bashrc > /dev/null << "EOF"
+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\]]\$ '\''
+EOF' \
--run-command 'echo "sudo growpart /dev/vda 1 && sudo resize2fs /dev/vda1 && source /etc/bash.bashrc" > /home/user/start.sh && chmod +x /home/user/start.sh' && \
# Create flag file after successful customization