Apache Redirects to Wrong .sucatalog Files

The ‘Root Branch’ .sucatalog files are copied to the root of the
server, not inside /content/catalogs/others. Apache is redirecting to
incorrect .sucatalog files which has the impact of not respecting
deselected updates in the branch designated as the ‘Root Branch’.
The 10.9 Catalog is not Copied for the Root Branch When Applying Changes

When changes are made to enable/disable updates with the Root Branch
for 10.9, the changes are not copied to the correct location when
applying those updates. Modified the code to loop through all catalogs
for that branch which should work for all OS versions going forward
without changing the code.
Sort by Date Instead of Name

If the sort option is not selectable, it makes much more sense to sort
by date rather than name.

https://jamfnation.jamfsoftware.com/discussion.html?id=9231
Changing the DocumentRoot is Incorrect

Changing the DocumentRoot is not the right way to handle having the php
files in a different location. Move the php files to the correct
location instead. Without this change, the NetSUS and JDS cannot
coexist on a CentOS/RedHat server and the timezone setting doesn’t get
pulled correctly since the sed string below this change expects the
files to be in the correct location.
detectedOS not Exported Properly

The variable ‘detectedOS’ is not being exported properly, leading to
issues installing on CentOS/RedHat.
Fixed Ability to Change NetBoot Images

Currently, changing the NetBoot image doesn’t work due to referencing
a, now deleted, admin.php file. Moved the handler to the ajax.php file
and modified netBoot.php to utilize the ajax.php file.
Move of Webadmin to Force

Changed to force the move so that it overwrites any existing files.
Remove Existing 'webadmin' Directory

Needs to be removed before it can be overwritten.
Improved OS Detection and Apache Reinstall Config File Cleanup

Improved detection of OS version for RedHat/CentOS if lsb_release is
installed. Improved handling of Apache configuration files in the case
of multiple installs.
Uncomment DocumentRoot

This line adds back in the functionality to uncomment DocumentRoot if
it is commented out as well as make sure it is set to the RedHat/CentOS
default of /var/www/html in case this is an upgrade of an existing
NetSUS install.
Merge pull request #20 from jschripsema/master

Fixing a number of issues with NetSUS 3.0.
Update webadminInstall.sh
Update webadminInstall.sh
Merge commit '152370d5bdfd71a0187d09f04b0b200fb0f54a04'

* commit '152370d5bdfd71a0187d09f04b0b200fb0f54a04':
  Update webadminInstall.sh
  Update webadminInstall.sh
  Uncomment DocumentRoot
  Improved OS Detection and Apache Reinstall Config File Cleanup
  Remove Existing 'webadmin' Directory
  Move of Webadmin to Force
  Fixed Ability to Change NetBoot Images
  detectedOS not Exported Properly
  Changing the DocumentRoot is Incorrect
  Sort by Date Instead of Name
  The 10.9 Catalog is not Copied for the Root Branch When Applying Changes
  Apache Redirects to Wrong .sucatalog Files