Commit bdbe4618 authored by helmo's avatar helmo

ssue #2460023: Fix existing symlink problem in Ubuntu/Debian upgrades.

parent 6330b869
......@@ -61,6 +61,11 @@ case "$1" in
# Add composer's bin dir to the $PATH.
echo "export PATH=\"\$HOME/.composer/vendor/bin:\$PATH\"" >> ~aegir/.bashrc
# Rename an old drush executable.
if [ -f /usr/local/bin/drush ]; then
mv /usr/local/bin/drush /usr/local/bin/drush-old-$(date +'%Y-%m-%d')
# Symlink Drush for other users to use.
ln -s ~aegir/.composer/vendor/bin/drush /usr/local/bin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment