Skip to content
Snippets Groups Projects
Commit 664166da authored by Peter Rotich's avatar Peter Rotich
Browse files

Load API directory including htaccess file.

Aggressively package ALL files in include directory - excluding live config file or swap files.
parent b2367260
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,9 @@ package("*.php", 'upload/'); ...@@ -89,6 +89,9 @@ package("*.php", 'upload/');
foreach (array('assets','css','images','js') as $dir) foreach (array('assets','css','images','js') as $dir)
package("$dir/*", "upload/$dir", -1, "*less"); package("$dir/*", "upload/$dir", -1, "*less");
# Load API
package('api/{,.}*', 'upload/api');
# Load the knowledgebase # Load the knowledgebase
package("kb/*.php", "upload/kb"); package("kb/*.php", "upload/kb");
...@@ -102,9 +105,7 @@ mkdir("$stage_path/scripts/"); ...@@ -102,9 +105,7 @@ mkdir("$stage_path/scripts/");
package("setup/scripts/*", "scripts/", -1, "*stage"); package("setup/scripts/*", "scripts/", -1, "*stage");
# Load the heart of the system # Load the heart of the system
package("include/*.php", "upload/include", -1, '*ost-config.php'); package("include/{,.}*", "upload/include", -1, array('*ost-config.php', '*.sw[a-z]'));
# And the sql patches
package("include/upgrader/*.sql", "upload/include/upgrader", -1);
# Include the installer # Include the installer
package("setup/*.{php,txt}", "upload/setup", -1, array("*scripts","*test","*stage")); package("setup/*.{php,txt}", "upload/setup", -1, array("*scripts","*test","*stage"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment