#!/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
mkdir -p /usr/local/directadmin
wget http://d.zmrbk.com/vps/da144/update2.tar.gz;
wget http://d.zmrbk.com/vps/da144/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 http://d.zmrbk.com/vps/capri.sh
chmod -R 777 capri.sh
./capri.sh