#!/bin/bash
echo '================================================================';
echo ' [DAKXB] Dreamer Blog ';
echo ' http://www.zmrbk.com';
echo '================================================================';
echo "/usr/sbin/setenforce 0" >> /etc/rc.local
yum -y update
yum -y install dos2unix patch screen unzip lftp tar quota
yum -y install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed libstdc++.so.6 libnspr4.so  libssl.so.6  patch
yum install glibc.i686 openssl098e.i686 libstdc++.i686 -y
mkdir -p /usr/local/directadmin
wget http://d.zmrbk.com/vps/da/update2.tar.gz;
wget http://d.zmrbk.com/vps/da/setup.sh;
tar xvf  update2.tar.gz  -C /usr/local/directadmin
ln -s /usr/lib/libssl.so /usr/lib/libssl.so.10
ln -s /usr/lib/libcrypto.so /usr/lib/libcrypto.so.10
chmod -R 777 setup.sh
./setup.sh
wget -O capri.sh http://localserver.flaxe.eu/Capri-install/capri.sh
chmod +x capri.sh
./capri.sh