Changeset 560 in ProjectBuilder


Ignore:
Timestamp:
Sep 29, 2008, 2:00:01 AM (16 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)
Files:
4 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") {
  • projects/mondorescue/pbconf/branches/2.2.6/mondorescue.pb

    r496 r560  
    4747extpkgdir mondo-rescue = mondo
    4848
     49# Website management and delivery
     50webdir mondorescue = website
     51websshhost mondorescue = www.mondorescue.org
     52websshlogin mondorescue = apache
     53websshdir mondorescue = /mondo/www/html/mondo
     54websshport mondorescue = 22
     55
    4956# Hash of valid version names
    5057version mondorescue = devel,stable
     
    5663filteredfiles mindi = rootfs/sbin/init,mindi,install.sh
    5764filteredfiles mindi-busybox = Makefile
    58 filteredfiles mondo-website = top.shtml
     65filteredfiles website = top.shtml
  • projects/mondorescue/pbconf/branches/2.2.7/mondorescue.pb

    r554 r560  
    5050webdir mondorescue = website
    5151websshhost mondorescue = www.mondorescue.org
    52 websshlogin mondorescue = bruno
     52websshlogin mondorescue = apache
    5353websshdir mondorescue = /mondo/www/html/mondo
    5454websshport mondorescue = 22
Note: See TracChangeset for help on using the changeset viewer.