View Single Post
  #6  
Old 31st August 2005, 00:56
so_ so_ is offline
Junior Member
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Centos 4.x modification

I copied the fedora30 section of dist.txt as Centos 4.x is probably closest to that.

I have tested this (only a little bit), but you get the general idea.

Code:
diff -ur install_ispconfig/dist.txt install_ispconfig_centos/dist.txt
--- install_ispconfig/dist.txt  2005-07-14 08:27:01.000000000 -0600
+++ install_ispconfig_centos/dist.txt   2005-08-30 10:27:27.772767064 -0600
@@ -356,6 +356,50 @@
 dist_mysql_group=mysql ##                                        # fedora40
 dist_httpd_daemon=httpd ##                                       # fedora40
 
+dist_init_scripts=/etc/rc.d/init.d ##                            # centos40
+dist_runlevel=/etc/rc.d ##                                       # centos40
+dist_smrsh=/etc/smrsh ##                                         # centos40
+dist_shells=/etc/shells ##                                       # centos40
+dist_http_user=apache ##                                         # centos40
+dist_http_group=apache ##                                        # centos40
+dist_bind_init_script=named ##                                   # centos40
+dist_bind_user=named ##                                          # centos40
+dist_bind_group=named ##                                         # centos40
+dist_bind_conf=/etc/named.conf ##                                # centos40
+dist_bind_dir=/var/named/chroot/var/named ##                     # centos40
+dist_bind_pidfile=/var/named/chroot/var/run/named/named.pid ##   # centos40
+dist_bind_hintfile=named.ca ##                                   # centos40
+dist_bind_localfile=named.local ##                               # centos40
+dist_passwd=/etc/passwd ##                                       # centos40
+dist_shadow=/etc/shadow ##                                       # centos40
+dist_group=/etc/group ##                                         # centos40
+dist_cron_daemon=crond ##                                        # centos40
+dist_cron_tab=/var/spool/cron/root ##                            # centos40
+dist_mysql_group=mysql ##                                        # centos40
+dist_httpd_daemon=httpd ##                                       # centos40
+
+dist_init_scripts=/etc/rc.d/init.d ##                            # centos41
+dist_runlevel=/etc/rc.d ##                                       # centos41
+dist_smrsh=/etc/smrsh ##                                         # centos41
+dist_shells=/etc/shells ##                                       # centos41
+dist_http_user=apache ##                                         # centos41
+dist_http_group=apache ##                                        # centos41
+dist_bind_init_script=named ##                                   # centos41
+dist_bind_user=named ##                                          # centos41
+dist_bind_group=named ##                                         # centos41
+dist_bind_conf=/etc/named.conf ##                                # centos41
+dist_bind_dir=/var/named/chroot/var/named ##                     # centos41
+dist_bind_pidfile=/var/named/chroot/var/run/named/named.pid ##   # centos41
+dist_bind_hintfile=named.ca ##                                   # centos41
+dist_bind_localfile=named.local ##                               # centos41
+dist_passwd=/etc/passwd ##                                       # centos41
+dist_shadow=/etc/shadow ##                                       # centos41
+dist_group=/etc/group ##                                         # centos41
+dist_cron_daemon=crond ##                                        # centos41
+dist_cron_tab=/var/spool/cron/root ##                            # centos41
+dist_mysql_group=mysql ##                                        # centos41
+dist_httpd_daemon=httpd ##                                       # centos41
+
 dist_init_scripts=/etc/init.d ##                                 # suse72
 dist_runlevel=/etc/init.d ##                                     # suse72
 dist_smrsh= ##                                                   # suse72
@@ -640,4 +684,4 @@
 dist_cron_daemon=cron ##                                         # freebsd51
 dist_cron_tab=/var/cron/tabs/root ##                             # freebsd51
 dist_mysql_group=mysql ##                                        # freebsd51
-dist_httpd_daemon=apache ##                                      # freebsd51
\ No newline at end of file
+dist_httpd_daemon=apache ##                                      # freebsd51
diff -ur install_ispconfig/setup1 install_ispconfig_centos/setup1
--- install_ispconfig/setup1    2005-07-29 07:25:40.000000000 -0600
+++ install_ispconfig_centos/setup1     2005-08-30 10:30:33.806485640 -0600
@@ -115,14 +115,26 @@
    rm -f dist.info.ende
 fi
 if [ -f /etc/redhat-release ] && [ ! -h  /etc/redhat-release ]; then
-   version=`cat /etc/redhat-release | cut -f5 -d' '`
-   echo $version | grep \\. &> /dev/null
-   if [ $? != 0 ]; then
-     version=`echo $version.0`
+   system=`cat /etc/redhat-release | cut -f1 -d ' '`
+   if [ "$system" == 'CentOS' ]; then
+       version=`cat /etc/redhat-release | cut -f3 -d' '`
+       echo $version | grep \\. &> /dev/null
+       if [ $? != 0 ]; then
+          version=`echo $version.0`
+       fi
+       distversion=`echo Centos $version`
+       echo $distversion
+       distvers=centos${version//./}
+   else
+       version=`cat /etc/redhat-release | cut -f5 -d' '`
+       echo $version | grep \\. &> /dev/null
+       if [ $? != 0 ]; then
+          version=`echo $version.0`
+       fi
+       distversion=`echo RedHat $version`
+       echo $distversion
+       distvers=rhat${version//./}
    fi
-   distversion=`echo RedHat $version`
-   echo $distversion
-   distvers=rhat${version//./}
    echo dist=$distvers '##' > dist.info.tmp
    grep -i $distvers dist.txt >> dist.info.tmp
    cp -f dist.info.tmp dist.info
Reply With Quote