From d195a9622d568824d228149c35dd47b728c99bf9 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 16 Mar 2011 15:40:19 +0100 Subject: [PATCH] use correct order of parameter for chown to work properly when using FreeBSD, fixes #663 Signed-off-by: Michael Kaufmann (d00p) --- lib/classes/aps/class.ApsInstaller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/classes/aps/class.ApsInstaller.php b/lib/classes/aps/class.ApsInstaller.php index 8b398a8c..054c6b51 100644 --- a/lib/classes/aps/class.ApsInstaller.php +++ b/lib/classes/aps/class.ApsInstaller.php @@ -185,7 +185,7 @@ class ApsInstaller extends ApsParser //installation succeeded //chown all files if installtion script has created some new files. otherwise customers cannot edit the files via ftp - safe_exec('chown ' . (int)$Row['guid'] . ':' . (int)$Row['guid'] . ' -R ' . escapeshellarg($this->RealPath . $this->DomainPath . '/')); + safe_exec('chown -R ' . (int)$Row['guid'] . ':' . (int)$Row['guid'] . ' ' . escapeshellarg($this->RealPath . $this->DomainPath . '/')); //update database @@ -350,7 +350,7 @@ class ApsInstaller extends ApsParser return false; } - safe_exec('chown ' . (int)$Row['guid'] . ':' . (int)$Row['guid'] . ' -R ' . escapeshellarg($this->RealPath . $this->DomainPath . '/')); + safe_exec('chown -R ' . (int)$Row['guid'] . ':' . (int)$Row['guid'] . ' ' . escapeshellarg($this->RealPath . $this->DomainPath . '/')); } else { @@ -366,7 +366,7 @@ class ApsInstaller extends ApsParser //set right file owner - safe_exec('chown ' . (int)$Row['guid'] . ':' . (int)$Row['guid'] . ' -R ' . escapeshellarg($this->RealPath . $this->DomainPath . '/')); + safe_exec('chown -R ' . (int)$Row['guid'] . ':' . (int)$Row['guid'] . ' ' . escapeshellarg($this->RealPath . $this->DomainPath . '/')); } //recursive mappings