diff options
author | Slack Coder <slackcoder@server.ky> | 2022-04-13 11:05:28 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2022-04-13 11:06:07 -0500 |
commit | 77bea528f8e070a8bab09881f83d2f03e88f08a4 (patch) | |
tree | 34e088effadfc0dfb2d3310e63331f2b7e254881 | |
parent | cfac2ed7530f1d0fe0e0a0077634751830a723f0 (diff) | |
download | pkgtools-go-77bea528f8e070a8bab09881f83d2f03e88f08a4.tar.xz |
installpkg: correct symlink location
Create the 'packages','scripts','setup' symlinks in /var/log instead of the
/var/log/pkgtools
-rw-r--r-- | installpkg.go | 4 |
1 files 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 } |