From 507a9c3230877a06794bdc9d5c5aed753637da26 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Wed, 5 Mar 2025 22:12:33 +0100 Subject: [PATCH] Update Script Post-Install --- scripts/customizable_post_install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/customizable_post_install.sh b/scripts/customizable_post_install.sh index a612bb6..0e64dd5 100644 --- a/scripts/customizable_post_install.sh +++ b/scripts/customizable_post_install.sh @@ -112,8 +112,11 @@ EOF else msg_ok "$(translate "kexec-pve service enabled")" fi - - # Add alias for reboot-quick + + if [ ! -f /root/.bash_profile ]; then + touch /root/.bash_profile + fi + if ! grep -q "alias reboot-quick='systemctl kexec'" /root/.bash_profile; then echo "alias reboot-quick='systemctl kexec'" >> /root/.bash_profile msg_ok "$(translate "reboot-quick alias added")"