#!/bin/bash

output=$(sudo deploy_custom_cert)
if [ $? = true ]; then
    sudo /var/scripts/create_vhost.sh 2>&1 1>/dev/null
else
    echo "Your certificate has been deployed!"
fi
whiptail --msgbox "$output" 8 78
