Thursday, January 19

 

UAPH - The Ugly Absolute Path Hack

Many apps in linux are coded using absolute paths, never a good idea really

This can cause a lot of trouble when trying to package an app into a cmg

Introducing the 'Ugly Absolute Path Hack'

We compile the path to /tmp/app-name-version-guid

We then alter the wrapper to soft link at run time /tmp/app-name-guid to the mounted location of the cmg.

And there you go you have an absolute path you can referance off of.

NOTE: This is no way even near 'best practice' but it does help to get some packages working as a last ditch no other options left hack

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?