%PDF-1.7 GIF89;
Server IP : 5.161.254.237 / Your IP : 216.73.216.93 Web Server : Apache System : Linux diamond.sialwebvps.com 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64 User : stellasp ( 1131) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/fleetssl-cpanel/ |
Upload File : |
#!/usr/bin/env bash okPrint() { echo -e "\e[32m${1}\e[0m" } warnPrint() { echo -e "\e[33m${1}\e[0m" } failPrint() { echo -e "\e[91m${1}\e[0m" exit 1 } fileExists() { if [ -s "$1" ]; then return 0 # true else return 1 # false fi } daemonRunning() { pidof letsencrypt.live.cgi > /dev/null return $? } checkRoot() { if (( EUID != 0 )); then failPrint "Please run installer as root" fi okPrint "Running installer as root" } checkOsVersion() { if [ "$FLEETSSL_SKIP_OS_CHECK" = "y" ]; then return fi if ! fileExists "/etc/os-release"; then # CloudLinux is missing /etc/os-release. Let's silently ignore it. return fi . /etc/os-release # Any non-EOL RHEL variant is okay if fileExists "/etc/redhat-release" && [ $(echo "$VERSION_ID >= 7" | bc -l) = 1 ]; then okPrint "RHEL-like OS version OK!" return fi # Ubuntu 20.04 is okay if [ \( "$ID" = "ubuntu" -a "$VERSION_ID" = "20.04" \) ]; then okPrint "Ubuntu OS version OK!" return fi failPrint "Unsupported operating system $ID ($VERSION_ID). Set the env variable FLEETSSL_SKIP_OS_CHECK=y to force installation." } checkCpanelVersion() { if ! fileExists "/usr/local/cpanel/cpanel"; then failPrint "Cannot find cPanel installed" fi } stopService() { service letsencrypt-cpanel stop > /dev/null if daemonRunning; then warnPrint "Daemon service not stopped successfully, attempting manual shutdown" killall -TERM letsencrypt.live.cgi sleep 5s if daemonRunning; then warnPrint "Manual shutdown not successful, killing process" killall -9 letsencrypt.live.cgi fi fi okPrint "FleetSSL cPanel service daemon stopped" } okPrint "*** By running this installer, you indicate that you have read the end-user\n licence agreement (https://cpanel.fleetssl.com/eula) and agree to all of its terms, as stated. ***\n" checkRoot checkOsVersion checkCpanelVersion stopService