From 77bea528f8e070a8bab09881f83d2f03e88f08a4 Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Wed, 13 Apr 2022 11:05:28 -0500 Subject: installpkg: correct symlink location Create the 'packages','scripts','setup' symlinks in /var/log instead of the /var/log/pkgtools --- installpkg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installpkg.go b/installpkg.go index a6e327e..438228b 100644 --- a/installpkg.go +++ b/installpkg.go @@ -190,14 +190,14 @@ func initializeDirectories(flags *InstallPkgFlags) error { "setup", } for _, f := range dirs { - fp := filepath.Join(flags.Root, LogDir, f) + fp := filepath.Join(flags.Root, LogDir, "..", f) isDir, _ := IsDir(fp) isSymlink, _ := IsSymlink(fp) if isDir || isSymlink { continue } - err := os.Symlink(filepath.Join("..", "..", "lib", "pkgtools", f), fp) + err := os.Symlink(filepath.Join("..", "lib", "pkgtools", f), fp) if err != nil { return err } -- cgit v1.2.3