by crystalhhc
4 deployments · 0 still active · last rev. 2 years ago

Compatible with: CentOS 7
						#!/bin/bash -x


# Prep release and repos
rpm -Uvh
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-ClearOS

# Install and upgrade
yum --enablerepo=* clean all
yum -y install app-base
yum -y install app-marketplace app-users app-groups app-date app-configuration-backup app-disk-usage app-mail-notification app-bandwidth-viewer app-incoming-firewall app-ssh-server
yum -y remove libreport ntsysv at
yum -y upgrade

# Enable firewall
allow-port -p TCP -d 22 -n SSH
allow-port -p TCP -d 81 -n Webconfig
sed -i -e 's/^MODE=.*/MODE="standalone"/' /etc/clearos/network.conf

# Start webconfig
service webconfig start

) 2>&1 | tee /var/log/clearos-installer.log