Install on CentOS and Red Hat


  • Is any plans for RH?


    Yes. In near future, you will be able to implements some interface for distro specific i-MSCP installations. The i-MSCP core code will be revisited a lot to allow installation on any distro.


    For instance, autoinstall interface :


    [code=php]
    #!/usr/bin/perl


    =head1 NAME


    autoinstaller::Adapter::Abstract - Abstract class for Autoinstaller distro adapters


    =cut


    # i-MSCP - internet Multi Server Control Panel
    # Copyright 2010 - 2012 by internet Multi Server Control Panel
    #
    # This program is free software; you can redistribute it and/or
    # modify it under the terms of the GNU General Public License
    # as published by the Free Software Foundation; either version 2
    # of the License, or (at your option) any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with this program; if not, write to the Free Software
    # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    #
    # @category i-MSCP
    # @copyright 2010 - 2012 by i-MSCP | http://i-mscp.net
    # @author Laurent Declercq <[email protected]>
    # @link http://i-mscp.net i-MSCP Home Site
    # @license http://www.gnu.org/licenses/gpl-2.0.html GPL v2


    package autoinstaller::Adapter::Abstract;


    use strict;
    use warnings;
    use iMSCP::Debug;
    use parent 'Common::SingletonClass';


    =head1 DESCRIPTION


    Abstract class for distro autoinstaller adapters. Any distro autoinstaller adapter class *should* implement methods of this class.


    =head1 PUBLIC METHODS


    =over 4


    =item installPreRequiredPackages()


    Install pre-required packages.


    Return int - 0 on success, other on failure


    =cut


    sub installPreRequiredPackages
    {
    0;
    }


    =item preBuild()


    Process preBuild tasks.


    Return int - 0 on success, other on failure


    =cut


    sub preBuild
    {
    0;
    }


    =item installPackages()


    Install distribution packages.


    Return int - 0 on success, other on failure


    =cut


    sub installPackages
    {
    my $self = shift;


    fatal(ref($self) . ' adapter must implement the installPackages() method');
    }


    =item postBuild()


    Process postBuild tasks.


    Return int - 0 on success, other on failure


    =cut


    sub postBuild
    {
    0;
    }


    =back


    =head1 Author


    Laurent Declercq <[email protected]>


    =cut


    1;
    [/php]


    All these methods (called by the installer subsystem) allow to the distribution maintainers to provide their autoinstall adapter. Of course, implementing such interface is not sufficient. When all interfaces will be ready, we will provide documentation for maintainers on our wiki.


    You need still note that official support will be provided only for Debian-like operating systems.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().