Skip to content

Instantly share code, notes, and snippets.

@brendanbbbb
brendanbbbb / cloudlinux_lsapi.sh
Last active November 24, 2020 23:25
Cloudlinux lsapi config
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo ""
echo " ####################### CloudLinux (cPanel) Installer ####################### "
echo ""
echo ""
if [ ! -d /usr/local/cpanel ]; then
@brendanbbbb
brendanbbbb / cpanel-customise.sh
Created November 16, 2019 12:26
Cpanel custom settings
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
HOSTNAME=$(hostname -f)
PASSV_PORT="50000:50100"
SSH_PORT=2022
PASSV_MIN=$(echo $PASSV_PORT | cut -d':' -f1)
PASSV_MAX=$(echo $PASSV_PORT | cut -d':' -f2)
ISVPS=$(((dmidecode -t system 2>/dev/null | grep "Manufacturer" | grep -i 'VMware\|KVM\|Bochs\|Virtual\|HVM' > /dev/null) || [ -f /proc/vz/veinfo ]) && echo "SI" || echo "NO")
@brendanbbbb
brendanbbbb / cloudlinux-cpanel.sh
Last active November 16, 2019 13:17
Install Cpanel on Cloudlinux
#!/bin/bash
# After installing CloudLinux from ISO we yum update, yum install open-vm-tools, reboot then
# run this script to install cpanel with a basic config
# Changes ssh port to 2022
# Removes some detault software blockers for cpanel to install
echo "CloudLinux OS customisation for CPANEL"
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"