Created
October 7, 2016 21:11
-
-
Save numericillustration/6e39e001d79578c1b537ca86822e789e to your computer and use it in GitHub Desktop.
after you pkgtrans a package, this will fix the symlinks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| base_dir=$(cd .. && pwd); for i in $(grep '1 s' pkgmap | awk '{print $4}'); do symlink=$(basename ${i%%=*}); this_path=$(dirname ${i%%=*}); symlimk_target=${i##*=}; cd ${base_dir}/chef/reloc/${this_path} && ln -s $symlimk_target $symlink; done; cd $base_dir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment