X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fclient_scripts%2FcPanel;h=c6d5bc19cc9457f7d0a189fadc68e3527eb0f2fe;hb=38d55f066c8a0b870321c6a375ae1d78607dded5;hp=2e808175fc4d2fa20e15bd9c048d3242f84c35a9;hpb=065171a4982e361ef528bbee88bc160ce1d69aa1;p=clearscm.git diff --git a/rc/client_scripts/cPanel b/rc/client_scripts/cPanel index 2e80817..c6d5bc1 100755 --- a/rc/client_scripts/cPanel +++ b/rc/client_scripts/cPanel @@ -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,12 +22,17 @@ 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 ulw=/usr/local/cp-monitoring-whm-plugin export CPANEL_TEAM='scrum' #alias ulc="cd /usr/local/cpanel" -alias cperl="$ulc/3rdparty/bin/perl" +alias perl="$ulc/3rdparty/bin/perl" # Unset PERLTIDY and PERLCRITIC as those variable override looking for # ~/.perltidyrc and ~/.perlcriticrc. @@ -55,3 +60,25 @@ function ulc { cd $ulc fi } # ulc + +function ulp { + path=$1 + + if [ -s "$1" ]; then + cd $ulp/$path + else + cd $ulp + fi +} # ulp + + +function ulw { + path=$1 + + if [ -s "$1" ]; then + cd $ulw/$path + else + cd $ulw + fi +} # ulw +