aboutsummaryrefslogtreecommitdiffsponsor
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2022-04-13 11:05:28 -0500
committerSlack Coder <slackcoder@server.ky>2022-04-13 11:06:07 -0500
commit77bea528f8e070a8bab09881f83d2f03e88f08a4 (patch)
tree34e088effadfc0dfb2d3310e63331f2b7e254881
parentcfac2ed7530f1d0fe0e0a0077634751830a723f0 (diff)
downloadpkgtools-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.go4
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
}