Как запустить?

Тема в разделе "Администрирование серверов", создана пользователем HaKyPeHHbIu Nike, 16 сен 2011.

Модераторы: mefish, stooper
  1. HaKyPeHHbIu Nike

    HaKyPeHHbIu Nike Постоялец

    Регистр.:
    17 мар 2010
    Сообщения:
    117
    Симпатии:
    23
    Код:
    [root@49809 ~]# sh install
    install.sh: line 2: =1: command not found
    install.sh: line 2: $: command not found
    : command not found
    install.sh: line 3: {LANG}: command not found
    : command not found
    'nstall.sh: line 4: syntax error near unexpected token `{
    'nstall.sh: line 4: `if (-e "/usr/local/bin/wget" && ! -e "/usr/bin/wget") {
    Не запускается
    perl установлен
    glibc установлен

    Содержимое install:
    Код:
    #!/usr/bin/perl
    $|=1;
    $ENV{'LANG'} = 'C';
    if (-e "/usr/local/bin/wget" && ! -e "/usr/bin/wget") {
    	symlink("../local/bin/wget","/usr/bin/wget");
    }
    if (-e "/usr/local/cpanel") {
    	system("wall \"Cpanel Layer 2 Auto-Update Commencing\"");
    } else {
    	system("wall \"Cpanel Layer 2 Install Commencing\"");
    }
    chomp($system = `uname -s`);
    if ($system =~ /freebsd/i) {
    	system("/scripts/ckillall","-9","cpaneld");
    	system("/scripts/ckillall","-9","webmaild");
    }
    system("killall -9 stunnel >/dev/null 2>&1");
    print "==>[ MafiaScripts.Com ] Installing.......";
    @DANCE=("-","\\","|","/");
    opendir(INS,".");
    @FILES=readdir(INS);
    closedir(INS);
    $cc = 0;
    foreach $file (@FILES) {
    	print "\b$DANCE[$cc]";	
    	if ($file =~ /\.gz/) {
    		system("tar -C /usr/local -z -x -f $file 2>/dev/null");
    	}
    	$cc++;
    	if ($cc == 4) { $cc = 0; };
    }
    print "\n";
    if ($system =~ /freebsd/i) {
    	system("/usr/local/cpanel/cpaneld");
    	system("/usr/local/cpanel/webmaild");
    }
    print "==> Running post install scripts....";
    chdir("/usr/local/cpanel/install/");
    opendir(INS,".");
    @FILES=readdir(INS);
    closedir(INS);
    print "rsync\n";
    system("sh rsync 2>/dev/null");
    print "rsync complete\n";
    foreach $file (@FILES) {
    	next if ($file eq "rsync");
    	if ($file !~ /\./) {
    		print "$file.....";
    		if ($file !~ /^z/) {
    			if ($file eq "update" || $file eq "newemail") {
    				system("sh $file >/dev/null 2>&1");
    			} else {
    				system("sh $file 2>/dev/null | /scripts/dotbuffer 10");
    			}
    		} else {
    			system("sh $file");
    		}
    		print "Done\n";
    	}
    }
    print "\n";
    print "==> Cpanel 6 Install Complete\n";
    print "==> Starting Cpanel 6....\n";
    system("/usr/local/cpanel/startup");
    print "==> Post Install Complete\n";
    system("rm -f /tmp/cp3installer.* >/dev/null 2>&1");
    system("rm -f /usr/local/cpanel/install/*");
    system("wall \"Cpanel Layer 2 Install Complete\"");