|
@@ -11,7 +11,7 @@ sed -i -e "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/sysconfig/selinux
|
|
|
setenforce 0
|
|
|
|
|
|
configure_repo() {
|
|
|
- yum -y install wget vim
|
|
|
+ yum -y install wget vim htop nmap iftop iotop nmap screen tmux
|
|
|
cd /tmp
|
|
|
wget -c http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
|
|
|
rpm -Uvh epel-release-6-8.noarch.rpm
|
|
@@ -38,7 +38,8 @@ configure_iptables() {
|
|
|
}
|
|
|
|
|
|
install_backuppc() {
|
|
|
- yum -y install perl-Compress-Zlib perl-Archive-Zip perl-File-RsyncP perl-suidperl openssh-clients expect httpd htpasswd backuppc lsof eject vim nmap screen smartmontools parted
|
|
|
+ yum -y install perl-Compress-Zlib perl-Archive-Zip perl-File-RsyncP perl-suidperl openssh-clients expect httpd htpasswd backuppc lsof eject smartmontools parted
|
|
|
+
|
|
|
|
|
|
chkconfig backuppc on
|
|
|
chkconfig httpd on
|
|
@@ -55,7 +56,7 @@ install_backuppc() {
|
|
|
sed -i -e "s/$Conf{CgiAdminUsers} = '';/$Conf{CgiAdminUsers} = 'root';/g" /etc/BackupPC/config.pl
|
|
|
sed -i -e "s/$Conf{Language} = 'en';/$Conf{Language} = 'fr';/g" /etc/BackupPC/config.pl
|
|
|
|
|
|
-
|
|
|
+ rm -rf /var/lib/BackupPC
|
|
|
|
|
|
/etc/init.d/httpd restart
|
|
|
/etc/init.d/backuppc restart
|