Annotation of loncom/build/loncapaautoupgrade, revision 1.1

1.1     ! harris41    1: #!/usr/bin/perl
        !             2: 
        !             3: # loncapaautoupgrade
        !             4: 
        !             5: # This tool does "all the things" to auto update a system.
        !             6: # Use with extreme caution so that you do not lose your
        !             7: # work.
        !             8: 
        !             9: # Scott Harrison, 10/25/2000
        !            10: 
        !            11: use strict;
        !            12: 
        !            13: # Download most recent LON-CAPA RPM
        !            14: 
        !            15: `/usr/bin/lynx -source http://install.lon-capa.org/3.1/loncapafiles/LON-CAPA-base-3.1-1.i386.rpm > /tmp/LON-CAPA-base-3.1-1.i386.rpm`;
        !            16: 
        !            17: # Stop LON-CAPA
        !            18: 
        !            19: `/etc/rc.d/init.d/loncontrol stop`
        !            20: 
        !            21: # Update downloaded RPM
        !            22: 
        !            23: `/bin/rpm -Uvh --force /tmp/LON-CAPA-base-3.1-1.i386.rpm`;
        !            24: 
        !            25: # Restore configuration values
        !            26: 
        !            27: `/usr/sbin/loncaparestoreconfigurations`;
        !            28: 
        !            29: # Start LON-CAPA
        !            30: 
        !            31: `/etc/rc.d/init.d/loncontrol start`;
        !            32: 
        !            33: # Verify base files and packages
        !            34: 
        !            35: `/usr/sbin/loncapaverify`;
        !            36: 
        !            37: # Remove downloaded RPM
        !            38: 
        !            39: `/bin/rm -f /tmp/LON-CAPA-base-3.1-1.i386.rpm`;
        !            40: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>