Skip to main content
Bruce Hewson
Participating Frequently
Feb 9, 2023 4:33 AM UTC

SMPE installer hardcodes installation path.

Not wanting to perform an installation to active system, our process is installation and maintenance to a non-active environment which is later copied to a SYSRES based set of files, which are mounted at IPL. The SMPE installation process hardcodes the Installation path /mvsde2/ into the installed files. 

e.g.

  /mvsde2/usr/lpp1/roa/ro/export_vars.sh            
 ****************************************************************
 #common export of PATH, LIBPATH and MANPATH           
 export PATH=/mvsde2/usr/lpp1/roa/ro/bin:$PATH          
 export LIBPATH=/mvsde2/usr/lpp1/roa/ro/lib:$LIBPATH       
 export MANPATH=/mvsde2/usr/lpp1/roa/ro/share/man:$MANPATH    
                                 
 for file in /mvsde2/usr/lpp1/roa/ro/etc/conda/activate.d/*.sh  
 do                                
   if [ -f "$file" ]; then                   
     . "$file"                        
   fi                              
 done                               
 ****************************************************************
                                 

  /mvsde2/usr/lpp1/roa/ro/etc/gitconfig          
************************************************************
[http]                            
  sslVerify = true                     
  sslCAinfo = /mvsde2/usr/lpp1/roa/ro/bin/ca-bundle.crt  
************************************************************

  /mvsde2/usr/lpp1/roa/ro/etc/conda/activate.d/ant_home.sh 
*************************************************************
export ANT_HOME_CONDA_BACKUP=$ANT_HOME            
export ANT_HOME=/mvsde2/usr/lpp1/roa/ro            
*************************************************************
  /mvsde2/usr/lpp1/roa/ro/etc/conda/activate.d/git.sh          
********************************************************************* Top 
export GIT_SHELL=/mvsde2/usr/lpp1/roa/ro/bin/bash             
export GIT_EXEC_PATH=/mvsde2/usr/lpp1/roa/ro/libexec/git-core       
export GIT_TEMPLATE_DIR=/mvsde2/usr/lpp1/roa/ro/share/git-core/templates  
******************************************************************** Botto
  /mvsde2/usr/lpp1/roa/ro/etc/conda/activate.d/ncurses.sh  
**************************************************************
export ASCII_TERMINFO=/mvsde2/usr/lpp1/roa/ro/share/terminfo  
**************************************************************

The above from a partial manual review of installed files.


After IPL we have standard SYMLINK for /usr/lpp1 which points to the sysres local version.  i.e.  /SYSRES/usr/lpp1

Looking for a way to set the future path values during install and maintenance process.

Bruce



------------------------------
Bruce Hewson
Infra Tech Lead Analyst
Citigroup Technology Inc
Singapore SG
------------------------------

    1 reply

    Bruce Hewson
    Participating Frequently
    Mar 15, 2023 10:30 PM UTC

    Not wanting to perform an installation to active system, our process is installation and maintenance to a non-active environment which is later copied to a SYSRES based set of files, which are mounted at IPL. The SMPE installation process hardcodes the Installation path /mvsde2/ into the installed files. 

    e.g.

      /mvsde2/usr/lpp1/roa/ro/export_vars.sh            
     ****************************************************************
     #common export of PATH, LIBPATH and MANPATH           
     export PATH=/mvsde2/usr/lpp1/roa/ro/bin:$PATH          
     export LIBPATH=/mvsde2/usr/lpp1/roa/ro/lib:$LIBPATH       
     export MANPATH=/mvsde2/usr/lpp1/roa/ro/share/man:$MANPATH    
                                     
     for file in /mvsde2/usr/lpp1/roa/ro/etc/conda/activate.d/*.sh  
     do                                
       if [ -f "$file" ]; then                   
         . "$file"                        
       fi                              
     done                               
     ****************************************************************
                                     

      /mvsde2/usr/lpp1/roa/ro/etc/gitconfig          
    ************************************************************
    [http]                            
      sslVerify = true                     
      sslCAinfo = /mvsde2/usr/lpp1/roa/ro/bin/ca-bundle.crt  
    ************************************************************

      /mvsde2/usr/lpp1/roa/ro/etc/conda/activate.d/ant_home.sh 
    *************************************************************
    export ANT_HOME_CONDA_BACKUP=$ANT_HOME            
    export ANT_HOME=/mvsde2/usr/lpp1/roa/ro            
    *************************************************************
      /mvsde2/usr/lpp1/roa/ro/etc/conda/activate.d/git.sh          
    ********************************************************************* Top 
    export GIT_SHELL=/mvsde2/usr/lpp1/roa/ro/bin/bash             
    export GIT_EXEC_PATH=/mvsde2/usr/lpp1/roa/ro/libexec/git-core       
    export GIT_TEMPLATE_DIR=/mvsde2/usr/lpp1/roa/ro/share/git-core/templates  
    ******************************************************************** Botto
      /mvsde2/usr/lpp1/roa/ro/etc/conda/activate.d/ncurses.sh  
    **************************************************************
    export ASCII_TERMINFO=/mvsde2/usr/lpp1/roa/ro/share/terminfo  
    **************************************************************

    The above from a partial manual review of installed files.


    After IPL we have standard SYMLINK for /usr/lpp1 which points to the sysres local version.  i.e.  /SYSRES/usr/lpp1

    Looking for a way to set the future path values during install and maintenance process.

    Bruce



    ------------------------------
    Bruce Hewson
    Infra Tech Lead Analyst
    Citigroup Technology Inc
    Singapore SG
    ------------------------------

    Rocket support provided a shell script which allowed me to manually modify the installed hardcoded PATHs values, so that the installation environment prefix is removed. This has made the installed packages transportable around our environment using our existing proces. Thank you.



    ------------------------------
    Bruce Hewson
    Infra Tech Lead Analyst
    Citigroup Technology Inc
    Singapore SG
    ------------------------------