Changeset 560 for devel/pb/bin/pb


Ignore:
Timestamp:
Sep 29, 2008, 2:00:01 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • Adds script for website installation on remote site
  • Use apache account for mondo's delivery
  • Update announces to fix html errors
  • web2ssh is now working (tested fully with mondo)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r559 r560  
    720720            # And create an empty pbconf
    721721            pb_mkdir_p("$dest/pbconf");
     722            # And prepare the pbscript to execute remotely
     723            open(SCRIPT,"> $ENV{'PBDESTDIR'}/pbscript") || die "Unable to create $ENV{'PBDESTDIR'}/pbscript";
     724            print SCRIPT "#!/bin/bash\n";
     725            print SCRIPT "#set -x\n";
     726            print SCRIPT "echo ... Extracting Website content\n";
     727            print SCRIPT "find . -type f | grep -Ev '^./$pbpkg-$pbver.tar.gz|^./pbscript' | xargs rm -f non-existent\n";
     728            print SCRIPT "find * -type d -depth | xargs rmdir 2> /dev/null \n";
     729            print SCRIPT "tar xfz $pbpkg-$pbver.tar.gz\n";
     730            print SCRIPT "mv $pbpkg-$pbver/* .\n";
     731            print SCRIPT "rm -f $pbpkg-$pbver.tar.gz\n";
     732            print SCRIPT "rmdir $pbpkg-$pbver\n";
     733            close(SCRIPT);
    722734        }
    723735
     
    10341046                    $cmd = "$cmd ; ln -sf $pbpkg-$pbver.tar.gz $pbpkg-latest.tar.gz";
    10351047                }
     1048            } elsif ($cmt eq "Web") {
     1049                $src = "$src $ENV{'PBDESTDIR'}/$pbpkg-$pbver.tar.gz"
    10361050            }
    10371051        }
     
    10421056    if (($cmt eq "vm") || ($cmt eq "ve")) {
    10431057        $src="$src $ENV{'PBROOTDIR'}/$ENV{'PBPROJ'}.pb $ENV{'PBDESTDIR'}/$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.pb $ENV{'PBETC'} $ENV{'PBDESTDIR'}/pbrc $ENV{'PBDESTDIR'}/pbscript";
    1044     } elsif ($cmt eq "Script") {
     1058    } elsif (($cmt eq "Script") || ($cmt eq "Web")) {
    10451059        $src="$src $ENV{'PBDESTDIR'}/pbscript";
    1046     } elsif (($cmt eq "Announce") || ($cmt eq "Web")) {
     1060    } elsif ($cmt eq "Announce") {
    10471061        $src="$src $ENV{'PBTMP'}/pbscript";
    10481062    } elsif ($cmt eq "Packages") {
Note: See TracChangeset for help on using the changeset viewer.