diff options
author | Daouda Lo <daouda@mandriva.com> | 2005-02-09 14:54:51 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2005-02-09 14:54:51 +0000 |
commit | f71304593841b287109192fcfd5693ce475af260 (patch) | |
tree | 095e7cf1f01f406ce608670a5611ca492ccf2c31 | |
parent | f0f27dea55f8b3dd195079a8563d5ce6fec45fbd (diff) | |
download | mgaonline-f71304593841b287109192fcfd5693ce475af260.tar mgaonline-f71304593841b287109192fcfd5693ce475af260.tar.gz mgaonline-f71304593841b287109192fcfd5693ce475af260.tar.bz2 mgaonline-f71304593841b287109192fcfd5693ce475af260.tar.xz mgaonline-f71304593841b287109192fcfd5693ce475af260.zip |
- return code according to mnf standards
-rwxr-xr-x | mdkonline | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -216,9 +216,13 @@ if ($login && $password && $boxname) { if ($sendconfres eq 'TRUE' && $key) { mdkonline::automated_upgrades($conffile, $login, md5_hex($password), $boxname, $key, $country, 'TRUE'); mdkonline::write_wide_conf($login, $boxname, $country); - output_p($logfile, N("Configuration uploaded successfully")) - } else { output_p($logfile, N("Problem uploading configuration")) } - } else { output_p($logfile, N("Cannot connect to mandrakeonline website: wrong login/password or router/firewall bad settings")) } + output_p($logfile, N("Configuration uploaded successfully")); + return 0; + } else { output_p($logfile, N("Problem uploading configuration")); return 1; } + } else { + output_p($logfile, N("Cannot connect to mandrakeonline website: wrong login/password or router/firewall bad settings")); + return 255; + } } else { wizards->new->safe_process($wiz, $in); } |