#!/bin/bash
#Nifty: Fix Plesk PHP version and mail service.

echo "Set Plesk default PHP version to PHP 8.0"
plesk bin service_plan -u "Default Domain" -php_handler_id plesk-php80-fpm
plesk bin service_plan -u "Default Simple" -php_handler_id plesk-php80-fpm
plesk bin service_plan -u "Unlimited" -php_handler_id plesk-php80-fpm

echo "Disable Plesk mail service"
plesk bin service_plan -u "Default Domain" -mail false
plesk bin service_plan -u "Default Simple" -mail false
plesk bin service_plan -u "Unlimited" -mail false
