version 1.1, 2000/10/26 04:29:34
|
version 1.4, 2000/10/27 18:06:31
|
Line 12 use strict;
|
Line 12 use strict;
|
|
|
# Download most recent LON-CAPA RPM |
# Download most recent LON-CAPA RPM |
|
|
`/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`; |
print `/usr/bin/lynx -term xterm -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`; |
|
|
# Stop LON-CAPA |
# Stop LON-CAPA |
|
|
`/etc/rc.d/init.d/loncontrol stop` |
print "Stopping LON-CAPA and Apache\n"; |
|
system("/etc/rc.d/init.d/loncontrol stop"); |
|
system("/etc/rc.d/init.d/httpd stop"); |
|
|
# Update downloaded RPM |
# Update downloaded RPM |
|
|
`/bin/rpm -Uvh --force /tmp/LON-CAPA-base-3.1-1.i386.rpm`; |
print `/bin/rpm -Uvh --force /tmp/LON-CAPA-base-3.1-1.i386.rpm`; |
|
|
# Restore configuration values |
# Restore configuration values |
|
|
`/usr/sbin/loncaparestoreconfigurations`; |
print `/usr/sbin/loncaparestoreconfigurations`; |
|
|
# Start LON-CAPA |
# Start LON-CAPA |
|
|
`/etc/rc.d/init.d/loncontrol start`; |
print "Starting LON-CAPA and Apache (be patient please)\n"; |
|
system("/etc/rc.d/init.d/loncontrol start"); |
|
system("/etc/rc.d/init.d/httpd start"); |
|
|
# Verify base files and packages |
# Verify base files and packages |
|
|
`/usr/sbin/loncapaverify`; |
print `/usr/sbin/loncapaverify`; |
|
|
# Remove downloaded RPM |
# Remove downloaded RPM |
|
|
`/bin/rm -f /tmp/LON-CAPA-base-3.1-1.i386.rpm`; |
print `/bin/rm -f /tmp/LON-CAPA-base-3.1-1.i386.rpm`; |
|
|