404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.15.188.84: ~ $
#!/bin/bash

# /**
#  * @version    2.4
#  * @package    Engintron for cPanel/WHM
#  * @author     Fotis Evangelou (https://kodeka.io)
#  * @url        https://engintron.com
#  * @copyright  Copyright (c) 2014 - 2024 Kodeka OÜ. All rights reserved.
#  * @license    GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
#  */

INTERVAL="15" # Interval in seconds, must not exceed 60 (seconds)
COUNTER="0"

function generate_https_vhosts {
    if [ -f /etc/nginx/utilities/https_vhosts.php ]; then
        RUN_CHECK=$(/usr/local/cpanel/3rdparty/bin/php -c /dev/null -q /etc/nginx/utilities/https_vhosts.php; echo $?)
        if [[ $RUN_CHECK == 1 ]]; then
            #bash /opt/engintron/engintron.sh purgecache > /etc/nginx/utilities/https_vhosts.log
            bash /opt/engintron/engintron.sh reload > /etc/nginx/utilities/https_vhosts.log
        fi
    fi
}

while [ $COUNTER -lt 60 ]; do
    generate_https_vhosts
    sleep $INTERVAL
    COUNTER=$[$COUNTER+$INTERVAL]
done

exit 0

Filemanager

Name Type Size Permission Actions
https_vhosts.php File 7.27 KB 0644
https_vhosts.sh File 990 B 0644