Skip to content

Instantly share code, notes, and snippets.

@numericillustration
Created October 7, 2016 21:11
Show Gist options
  • Save numericillustration/6e39e001d79578c1b537ca86822e789e to your computer and use it in GitHub Desktop.
Save numericillustration/6e39e001d79578c1b537ca86822e789e to your computer and use it in GitHub Desktop.
after you pkgtrans a package, this will fix the symlinks
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