Skip to content

Commit

Permalink
update inc/cpcheck.inc
Browse files Browse the repository at this point in the history
fix PATH in /root/.bashrc for ruby/rvm installs

i.e. install Ruby via rvm for more recent 2.2.4 version
[CODE]
curl -sSL https://rvm.io/mpapis.asc | gpg -v --import -
curl -L https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
echo $PATH
rvm requirements
type rvm | head -1
RUBYVER=2.2.4
rvm install ${RUBYVER}
rvm use ${RUBYVER} --default
rvm rubygems current
ruby -v
[/CODE]
  • Loading branch information
centminmod committed Jan 5, 2016
1 parent 03b708c commit 283521d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions inc/cpcheck.inc
Expand Up @@ -333,6 +333,12 @@ xpowerby() {
fi
}

pathfixes() {
if [[ -z "$(grep '\$PATH:' /root/.bashrc)" ]]; then
sed -i "s|export PATH=\"\/usr\/lib64\/ccache|export PATH=\"\$PATH:\/usr\/lib64\/ccache|" /root/.bashrc
fi
}

cpcheck() {

if [ -f /var/cpanel/cpanel.config ]; then
Expand All @@ -357,6 +363,7 @@ cronpathadjust
rclocalchecks
checkovzkernels
kernelchecks
pathfixes

if [[ "$INITIALINSTALL" != [yY] ]]; then
selinxcheck
Expand All @@ -377,6 +384,7 @@ if [[ "$INITIALINSTALL" != [yY] ]]; then
leupdates
memcachedupdatechecks
xpowerby
pathfixes
fi

}
Expand Down

0 comments on commit 283521d

Please sign in to comment.