From 269c24a398628d42e1b5f717c5531eaac9b08b32 Mon Sep 17 00:00:00 2001 From: "Florian Aders (EleRas)" Date: Fri, 6 Feb 2015 13:25:58 +0100 Subject: [PATCH] Added file - parameter to command if command was created by expanding file - attributes in ConfigDaemon --- lib/classes/config/class.ConfigDaemon.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/classes/config/class.ConfigDaemon.php b/lib/classes/config/class.ConfigDaemon.php index 92fbb8c0..5e6a8406 100644 --- a/lib/classes/config/class.ConfigDaemon.php +++ b/lib/classes/config/class.ConfigDaemon.php @@ -283,7 +283,7 @@ class ConfigDaemon { // @TODO: Maybe have a backup - space somewhere? // @TODO: Use IO - class if (array_key_exists('backup', $attributes)) { - $return[] = array('type' => 'command', 'content' => 'mv "' . $this->_parseContent($attributes['name']) . '" "' . $this->_parseContent($attributes['name']) . '.frx.bak"'); + $return[] = array('type' => 'command', 'content' => 'mv "' . $this->_parseContent($attributes['name']) . '" "' . $this->_parseContent($attributes['name']) . '.frx.bak"', 'file' => $this->_parseContent($attributes['name'])); } // Now the content of the file can be written @@ -295,12 +295,12 @@ class ConfigDaemon { // Let's check if the mode of the file should be changed if (array_key_exists('chmod', $attributes)) { - $return[] = array('type' => 'command', 'content' => 'chmod ' . $attributes['chmod'] . ' "' . $this->_parseContent($attributes['name']) . '"'); + $return[] = array('type' => 'command', 'content' => 'chmod ' . $attributes['chmod'] . ' "' . $this->_parseContent($attributes['name']) . '"', 'file' => $this->_parseContent($attributes['name'])); } // Let's check if the owner of the file should be changed if (array_key_exists('chown', $attributes)) { - $return[] = array('type' => 'command', 'content' => 'chown ' . $attributes['chown'] . ' "' . $this->_parseContent($attributes['name']) . '"'); + $return[] = array('type' => 'command', 'content' => 'chown ' . $attributes['chown'] . ' "' . $this->_parseContent($attributes['name']) . '"', 'file' => $this->_parseContent($attributes['name'])); } if ($visibility > 0) {