Update customizable_post_install.sh

This commit is contained in:
MacRimi 2025-07-29 19:58:49 +02:00
parent 3a890ba2c7
commit 575c0e5bf9

View File

@ -2895,18 +2895,19 @@ EOF
msg_ok "$(translate "Welcome message script created")" msg_ok "$(translate "Welcome message script created")"
local bashrc="$HOME/.bashrc" local bashrc="$HOME/.bashrc"
if ! grep -q "alias aptup=" "$bashrc"; then if ! grep -q "alias aptup=" "$bashrc"; then
msg_info "$(translate "Adding useful aliases to ~/.bashrc...")" msg_info "$(translate "Adding useful aliases to ~/.bashrc...")"
cat << 'EOF' >> "$bashrc" cat <<EOF >> "$bashrc"
# Aliases personalizados # ProxMenux Figurine aliases and tools
alias aptup='apt update && apt dist-upgrade' alias aptup='apt update && apt dist-upgrade'
alias lxcclean='bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/clean-lxcs.sh)"' alias lxcclean='curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/clean-lxcs.sh | bash'
alias lxcupdate='bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/update-lxcs.sh)"' alias lxcupdate='curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/update-lxcs.sh | bash'
alias kernelclean='bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/kernel-clean.sh)"' alias kernelclean='curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/kernel-clean.sh | bash'
alias cpugov='bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/scaling-governor.sh)"' alias cpugov='curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/scaling-governor.sh | bash'
alias updatecerts='pvecm updatecerts' alias updatecerts='pvecm updatecerts'
alias seqwrite='sync; fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --filename=test --bs=4M --size=32G --readwrite=write --ramp_time=4' alias seqwrite='sync; fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --filename=test --bs=4M --size=32G --readwrite=write --ramp_time=4'
@ -2922,12 +2923,15 @@ alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto' alias egrep='egrep --color=auto'
EOF EOF
msg_ok "$(translate "Aliases added to .bashrc")" msg_ok "$(translate "Aliases added to .bashrc")"
sed -i '/\${marker_begin}/d;/\${marker_end}/d' .bashrc
else else
msg_info "$(translate "Aliases already present. Skipping addition.")" msg_info "$(translate "Aliases already present. Skipping addition.")"
msg_ok "$(translate "Aliases added to .bashrc")" msg_ok "$(translate "Aliases added to .bashrc")"
fi fi
msg_info "$(translate "Cleaning up temporary files...")" msg_info "$(translate "Cleaning up temporary files...")"
rm -rf "$temp_dir" > /dev/null 2>&1 rm -rf "$temp_dir" > /dev/null 2>&1
msg_ok "$(translate "Cleanup completed")" msg_ok "$(translate "Cleanup completed")"