Update postinstall.sh

This commit is contained in:
Jacob Schantli committed 2026-10-06 19:40:19 -07:00
1 parent 617831c25a
commit 8c730986a5
1 file changed
+20 -10
+20 -10
View File
@@ -294,16 +294,26 @@ install_1password() {
fi
}
install_Windscribe() {
install_PIA() {
log_info "----------------------------------------------------"
log_info "Installing Windscribe"
log_info "Installing Private Internet Access (PIA)"
log_info "----------------------------------------------------"
if rpm -q windscribe-cli > /dev/null 2>&1 || command_exists windscribe; then
log_info "Windscribe already installed."
if [ -d "/opt/piavpn" ]; then
log_info "PIA is already installed."
else
log_info "Downloading and installing Windscribe..."
sudo dnf install -y https://windscribe.com/install/desktop/linux_rpm_x64
check_status "Windscribe installation" "non-critical"
log_info "Downloading and installing PIA..."
PIA_URL=$(curl -s https://www.privateinternetaccess.com/download/linux-vpn | grep -oP 'https://[^\"]+pia-linux-[0-9\.\-]+\.run' | head -n 1)
if [ -n "$PIA_URL" ]; then
wget -qO /tmp/pia-linux.run "$PIA_URL"
chmod +x /tmp/pia-linux.run
# Run the installer as the current user, letting it prompt for sudo/pkexec if needed
/tmp/pia-linux.run --quiet --accept
rm /tmp/pia-linux.run
check_status "PIA installation" "non-critical"
else
log_error "Failed to fetch PIA download URL."
FAILED_STEPS+=("PIA installation")
fi
fi
}
@@ -569,7 +579,7 @@ show_menu() {
echo "10. Install GNOME Extensions"
echo "11. Install Discord"
echo "12. Install 1Password"
echo "13. Install Windscribe"
echo "13. Install Private Internet Access (PIA)"
echo "14. Install Topgrade"
echo "15. Install Antigravity App, IDE, and CLI"
echo "16. Install P03 Kernel (experimental, not in Install Everything)"
@@ -586,7 +596,7 @@ run_all() {
install_software
install_discord
install_1password
install_Windscribe
install_PIA
install_topgrade
if [ "$1" != "skip_kernel" ]; then
install_cachyos
@@ -644,7 +654,7 @@ while true; do
10) install_gnome_extensions ;;
11) install_discord ;;
12) install_1password ;;
13) install_Windscribe ;;
13) install_PIA ;;
14) install_topgrade ;;
15) install_antigravity ;;
16) install_p03 ;;