Changeset 1035
- Timestamp:
- 03/07/08 01:27:20
(9 months ago)
- Author:
- rats
- Message:
small patches ... still errors remaining in update script!
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1034 |
r1035 |
|
| 1854 | 1854 | sub store_conf { |
|---|
| 1855 | 1855 | |
|---|
| | 1856 | push_el(\@main::el, 'store_conf()', 'Starting...'); |
|---|
| | 1857 | |
|---|
| | 1858 | my ($key, $value, $fline, $rs) = (undef, undef, undef, undef); |
|---|
| | 1859 | my $rwith = undef; |
|---|
| | 1860 | my $file_name = undef; |
|---|
| | 1861 | |
|---|
| 1856 | 1862 | if ( defined($_[0]) ) { |
|---|
| 1857 | 1863 | $file_name = $_[0]; |
|---|
| … | … | |
| 1861 | 1867 | } |
|---|
| 1862 | 1868 | |
|---|
| 1863 | | my ($key, $value, $fline, $rs) = (undef, undef, undef, undef); |
|---|
| 1864 | | my $rwith = undef; |
|---|
| 1865 | | |
|---|
| 1866 | | push_el(\@main::el, 'store_conf()', 'Starting...'); |
|---|
| | 1869 | |
|---|
| 1867 | 1870 | |
|---|
| 1868 | 1871 | ($rs, $fline) = get_file($file_name); |
|---|
| r1034 |
r1035 |
|
| 48 | 48 | VHCS247 => 1, |
|---|
| 49 | 49 | VHCS248 => 2, |
|---|
| 50 | | RC3 => 3, |
|---|
| 51 | | RC4 => 4, |
|---|
| | 50 | RC2 => 3, |
|---|
| | 51 | RC3 => 4, |
|---|
| 52 | 52 | }; |
|---|
| 53 | 53 | |
|---|
| … | … | |
| 663 | 663 | $rs = update_conf($cfg_file); |
|---|
| 664 | 664 | if ($rs != 0) { |
|---|
| 665 | | exit_werror("failed to get /etc/ispcp/ispcp.conf!"); |
|---|
| | 665 | exit_werror("failed to get $cfg_file"); |
|---|
| 666 | 666 | } |
|---|
| 667 | 667 | |
|---|
| … | … | |
| 728 | 728 | push_el(\@main::el, 'patch_ispcp_rc3()', 'Ending...'); |
|---|
| 729 | 729 | |
|---|
| | 730 | my ($rs, $rdata) = (undef, undef); |
|---|
| | 731 | |
|---|
| 730 | 732 | print STDOUT "\tUpgrading system values ..."; |
|---|
| 731 | 733 | |
|---|
| 732 | 734 | # update ispcp.conf |
|---|
| 733 | | my $cfg_file = '/etc/ispcp/ispcp.conf'; |
|---|
| | 735 | my $cfg_file = $main::cfg_file; |
|---|
| 734 | 736 | $rs = update_conf($cfg_file); |
|---|
| 735 | 737 | if ($rs != 0) { |
|---|
| 736 | | exit_werror("failed to get /etc/ispcp/ispcp.conf!"); |
|---|
| | 738 | exit_werror("failed to get $cfg_file"); |
|---|
| 737 | 739 | } |
|---|
| 738 | 740 | |
|---|
| … | … | |
| 821 | 823 | } |
|---|
| 822 | 824 | # ispCP 1.0.0 RC2/3 Update |
|---|
| 823 | | elsif ($main::ua{'update'} ge RC2) { |
|---|
| | 825 | elsif ($main::ua{'update'} >= RC2) { |
|---|
| 824 | 826 | stop_services("/tmp/vhcs2-backup-all.lock"); |
|---|
| 825 | 827 | |
|---|
|