More changes for cPanel
[clearscm.git] / rc / client_scripts / cPanel
index 2e80817..aec6eeb 100755 (executable)
@@ -12,9 +12,9 @@
 # (c) Copyright 2013, ClearSCM, Inc., all rights reserved.
 #
 ################################################################################
-append_to_path /usr/local/cpanel/3rdparty/lib/path-bin
-append_to_path /usr/local/cpanel/3rdparty/bin
-append_to_path /usr/local/cpanel/build-tools
+prepend_to_path /usr/local/cpanel/build-tools
+prepend_to_path /usr/local/cpanel/3rdparty/lib/path-bin
+prepend_to_path /usr/local/cpanel/3rdparty/bin
 append_to_path /usr/local/sbin
 append_to_path /usr/local/bin
 append_to_path /usr/sbin
@@ -22,8 +22,12 @@ append_to_path /opt/cpanel/composer/bin
 append_to_path /opt/cplint/bin
 append_to_path /root/bin
 
+# Intended to be used for root
+WIZARD="CPanel"
+
 export CDPATH=/usr/local
 export ulc=/usr/local/cpanel
+export ulp=/usr/local/cp-monitoring-cpanel-plugin
 export CPANEL_TEAM='scrum'
 
 #alias ulc="cd /usr/local/cpanel"
@@ -55,3 +59,14 @@ function ulc {
     cd $ulc
   fi
 } # ulc
+
+function ulp {
+  path=$1
+
+  if [ -s "$1" ]; then
+    cd $ulp/$path
+  else
+    cd $ulp
+  fi
+} # ulp
+