Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading from older versions of BOA fails #315

Closed
tdm4 opened this issue Jun 17, 2014 · 2 comments
Closed

Upgrading from older versions of BOA fails #315

tdm4 opened this issue Jun 17, 2014 · 2 comments

Comments

@tdm4
Copy link

tdm4 commented Jun 17, 2014

Steps to reproduce:

  1. Run an older BOA like 2.0.9 and have 'barracuda', 'boa', and 'octopus' located in /usr/local, and not /opt
  2. BOA.sh.txt doesn't think to check /usr/local because for some reason my system has
    /opt/local/bin/.fix.bins.txt (0 byte file)

Line 79 of BOA.sh.txt:
rm -f /opt/local/bin/.boa*
if [ ! -f "/opt/local/bin/.fix.bins.txt" ] ; then
rm -f /usr/local/bin/{barracuda*,boa*,drushextra*,octopus*,randpass*,sqlmagic*,syncpass*,thinkdifferent*}
touch /opt/local/bin/.fix.bins.txt
fi

To resolve:
rm -f /usr/local/bin/{barracuda*,boa*,octopus*}

OR

Possibly rm -f /opt/local/bin/.fix.bins.txt

Then run bash BOA.sh.txt again.

If I do the latter, it does correctly place 'barracuda' and the other binaries in /opt/local/bin, but, /opt/local/bin is not in the $PATH variable, so this might confuse some people.

@tdm4
Copy link
Author

tdm4 commented Jun 17, 2014

Line 75 of BOA.sh.txt has:

sed -i "s/^export PATH=.*/export PATH=\$PATH:\/usr\/local\/bin:\/opt\/local\/bin/g" /root/.bashrc &> /dev/nulla

This line will only work if /root/.bashrc already has an export PATH= line in it. (BOA 2.0.9's /root/.bashrc does not have one), so the sed line will do nothing if the PATH isn't in there.

@omega8cc
Copy link
Owner

omega8cc commented Jun 17, 2014

OK, that should do the trick. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants