Menu

#174 many maintenance and migration scripts have hard coded paths

open
nobody
5
2009-09-27
2009-09-27
No

Many of the scripts use hard coded paths for the additional perl libraries at /opt/Inprotect instead of using $CONFIG{'ROOTDIR') syntax

Discussion

  • Kenneth Kline

    Kenneth Kline - 2009-10-09

    In the past when I tried to use a form of relative path, or a variable it did not seem to include the path properly. I will try to retest this against 1.92 and put a fix in place for that build as 1.93. It will require to load the config settings prior to calling the use on various perl modules.

    The easiest work around would to be to link the following directory

    mkdir opt

    and then

    ln -s /opt/Inprotect to where ever the correcsponding inprotect directory is

    to fake the hard coded path else edit each file in 1.00 but if you do that any updated scripts that would come out would needed edited.

    I recommend to link the directory if your system does not contain / or wish to contain /opt

     
  • David Blaine

    David Blaine - 2009-10-09

    I'm running this off a LiveCD so portions of the filesystem are read-only (like /opt). That's why I installed it under a different directory that was writeable.

    I did finally put in a workaround.

     

Log in to post a comment.

MongoDB Logo MongoDB