Changeset 6b9c9cc891ad219b3f22663481dfaedb6d1ea273
- Timestamp:
- 07/08/08 15:06:36
(5 years ago)
- Author:
- Mark Harrison <mark@omniti.com>
- git-committer:
- Mark Harrison <mark@omniti.com> 1215529596 +0000
- git-parent:
[b8d17f1fe46efac764a9f6b52b2e89a5695676fd]
- git-author:
- Mark Harrison <mark@omniti.com> 1215529596 +0000
- Message:
Moving the update script to be an integral part of resmon. Run ./resmon -u to
update. Also takes the -d flag for debug info.
git-svn-id: https://labs.omniti.com/resmon/trunk@139 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rb8d17f1 |
r6b9c9cc |
|
| 12 | 12 | use Getopt::Long; |
|---|
| 13 | 13 | use Data::Dumper; |
|---|
| 14 | | use vars qw($config_file $debug $status_file $interface $port $config $status); |
|---|
| | 14 | use vars qw($config_file $debug $status_file $interface $port $config |
|---|
| | 15 | $status $update); |
|---|
| 15 | 16 | |
|---|
| 16 | 17 | use Resmon::Config; |
|---|
| … | … | |
| 25 | 26 | "d" => \$debug, |
|---|
| 26 | 27 | "f=s" => \$status_file, |
|---|
| | 28 | "u" => \$update, |
|---|
| 27 | 29 | ); |
|---|
| | 30 | |
|---|
| | 31 | if ($update) { |
|---|
| | 32 | use Resmon::Updater; |
|---|
| | 33 | exit(Resmon::Updater::update($debug)); |
|---|
| | 34 | } |
|---|
| 28 | 35 | |
|---|
| 29 | 36 | $config_file ||= "$0.conf"; |
|---|