[BlueOnyx:01204] Re: problem with Nuonce script installer

Tjerk Hacquebord tjerk at hqmatics.nl
Tue May 12 03:11:34 -05 2009


"The handler code does
    /bin/rm -Rf $install_directory/*"

What would happen if you have a space in the $install_directory?
Wouldn't that execute
/bin/rm -Rf /home/sites /mysite/

In that case it would delete all of /home/sites




Tjerk Hacquebord
---
tjerk at hqmatics.nl
http://www.hqmatics.nl


HQMatics: Software- en websiteontwikkeling

-----Oorspronkelijk bericht-----
Van: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it]
Namens Greg Kuhnert
Verzonden: dinsdag 12 mei 2009 0:46
Aan: Ken Marcus - Precision Web Hosting, Inc.
CC: BlueOnyx General Mailing List
Onderwerp: [BlueOnyx:01203] Re: problem with Nuonce script installer

Ken Marcus - Precision Web Hosting, Inc. wrote:
> Basically I don't think any combination of entries in the directory path 
> should delete 100 web sites at once.
>
>   
Understood, and agreed. I've never personally seen that happen.

The web page passes a directory "suffix" that is relative to the 
basedir/web directory for that user.

$path = $webapp->{'installdir'};
if ( ! ($path =~ m#^/#) ) { $path = "/" . $path; }
if ( ! ($path =~ m#/$#) ) { $path .= "/"; }

$install_directory = $vsite->{'basedir'} . "/web" . $path;

The handler code does
    /bin/rm -Rf $install_directory/*

I really dont know how its possible to delete multiple websites - Even 
if you forget a leading or trailing / ..... the installer takes care of 
it for you... but as I said before, I will happily investigate further - 
if you can tell me a bit more about what you typed in when this happened.

Regards,

--
+---------------------------------------------------------------------+
|   / \   Greg Kuhnert, gkuhnert at compassnetworks.com.au               |
| <  o  > Compass Networks - Pointing you in the right direction      |
|   \ /   Come see us for BlueQuartz / BlueOnyx modules & Support.    |
+---------------------------------------------------------------------+


_______________________________________________
Blueonyx mailing list
Blueonyx at blueonyx.it
http://www.blueonyx.it/mailman/listinfo/blueonyx




More information about the Blueonyx mailing list