Changeset 10 for devel/dploy


Ignore:
Timestamp:
05/16/07 19:25:23 (5 years ago)
Author:
bruno
Message:

More secure recursive removal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/dploy/bin/mrepo-dploy.org

    r8 r10  
    44# For the dploy.org project 
    55# Provided under the GPL v2 
     6# 
     7# $Id$ 
    68# 
    79 
     
    3638# Check for errors 
    3739# 
    38  
    3940die "Unable to find $mrepoconffile" if (! (-f $mrepoconffile)); 
    4041die "Unable to find $metamrepoconffile" if (! (-f $metamrepoconffile)); 
     42 
    4143# 
    4244# For the main config file analysis 
     
    169171# Prepare the repoview structure automatically with mrepo 
    170172# 
    171 chdir $wwwdir || die "Unable to change dir to $wwwdir"; 
     173die "Unable to access $wwwdir" if (! -d $wwwdir); 
    172174# 
    173175print "Purging previous mrepo environement\n"; 
    174176system "/usr/bin/mrepo -c $mrepoconffile --unmount"; 
    175 system "rm -rf *"; 
     177system "rm -rf $wwwdir/*"; 
    176178print "Creating new mrepo environement\n"; 
    177179system "/usr/bin/mrepo -c $mrepoconffile -vvvvvv -g"; 
Note: See TracChangeset for help on using the changeset viewer.