So we've all established that Drush is the bee's knees for running drupal installations. Right?
So tonight I had to install it on a server where I have limited rights.
This was the process (based on perusing the README.txt):
The bit I like best is greping the .bashrc so I only add the require line once.
I also had to track down php-cli that drush was complaining about. So I just used locate then made a link:
So tonight I had to install it on a server where I have limited rights.
This was the process (based on perusing the README.txt):
# install drushdv=7.x-5.8ptd=~/bin/drushfiles/$dvmkdir -p $ptdtar -xf ~/drush-$dv.tar.gz -C $ptdchmod u+x $ptd/drush/drushln -sf $ptd/drush/drush ~/bin/drushln -sf $ptd/drush/examples/example.bashrc ~/bin/drush.bashrc# put drush.bashrc into .bashrcif grep -Fq "drush.bashrc" .bashrc
then
echo "you already have drush.bashrc in your .bashrc, so no action taken"elseecho "drush.bashrc added to you .bashrc"echo "source ~/bin/drush.bashrc" >> .bashrcfi# tidy up
rm ~/drush-$dv.tar.gz
The bit I like best is greping the .bashrc so I only add the require line once.
I also had to track down php-cli that drush was complaining about. So I just used locate then made a link:
locate php-cli
ln -sf /hsphere/shared/php53/bin/php-cli bin/php-cli
No comments:
Post a Comment