summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorRomain d'Alverny <rdalverny@mandriva.org>2005-01-31 16:20:46 +0000
committerRomain d'Alverny <rdalverny@mandriva.org>2005-01-31 16:20:46 +0000
commit9aa5a8448fab90e9253131322e03db3a7c832619 (patch)
treeb1efeffe5efbd9aa4535bf82d2519a53e3899792 /mdkupdate
parent674676f0b791e9dce5360caafd80751d15e9a895 (diff)
downloadmgaonline-9aa5a8448fab90e9253131322e03db3a7c832619.tar
mgaonline-9aa5a8448fab90e9253131322e03db3a7c832619.tar.gz
mgaonline-9aa5a8448fab90e9253131322e03db3a7c832619.tar.bz2
mgaonline-9aa5a8448fab90e9253131322e03db3a7c832619.tar.xz
mgaonline-9aa5a8448fab90e9253131322e03db3a7c832619.zip
Moved is_running to mdkonline.pm. Added is_running call to mdkupdate.
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdkupdate b/mdkupdate
index c0b04595..fbc07090 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -27,6 +27,8 @@ use mdkonline;
BEGIN { unshift @::textdomains, 'mdkupdate' }
+mdkonline::is_running('mdkupdate') and die "mdkupdate already running\n";
+
require_root_capability();
my $confdir = '/root/.MdkOnline';