From a8032a3f16375592275d15b9b2e88c196cbefa08 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 31 Oct 2013 17:41:37 +0000 Subject: [PATCH] Don't clean plugins/ folder or config files Also, if any non-shipped .htaccess files exist, don't clean those either Fixes #60 --- setup/cli/modules/deploy.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/cli/modules/deploy.php b/setup/cli/modules/deploy.php index 97d3e1abb..aa123bfcb 100644 --- a/setup/cli/modules/deploy.php +++ b/setup/cli/modules/deploy.php @@ -127,7 +127,9 @@ class Deployment extends Unpacker { // Clean everything but include folder first $this->clean($root, $this->destination, -1, array($include, "setup/")); - $this->clean("$root/include", $include, -1); + $this->clean("$root/include", $include, -1, + array("ost-config.php","settings.php","plugins/", + "*/.htaccess")); } } } -- GitLab