diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-01-30 06:23:58 +0100 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-03 19:49:14 +0000 |
commit | 095aaaa639ab57c594bb80bfefbfaed2a2fdff92 (patch) | |
tree | 55db4600d1fe284fb591ee810d490b179afe16ad /libpod/sql_state_internal.go | |
parent | 6ba6ecf59b9204d36388de07b866f157a4d13957 (diff) | |
download | podman-095aaaa639ab57c594bb80bfefbfaed2a2fdff92.tar.gz podman-095aaaa639ab57c594bb80bfefbfaed2a2fdff92.tar.bz2 podman-095aaaa639ab57c594bb80bfefbfaed2a2fdff92.zip |
Allow users to specify logpath
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #135
Approved by: mheon
Diffstat (limited to 'libpod/sql_state_internal.go')
-rw-r--r-- | libpod/sql_state_internal.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/sql_state_internal.go b/libpod/sql_state_internal.go index 24d5d8bd4..6523bb589 100644 --- a/libpod/sql_state_internal.go +++ b/libpod/sql_state_internal.go @@ -178,6 +178,7 @@ func prepareDB(db *sql.DB) (err error) { ShmSize INTEGER NOT NULL, StaticDir TEXT NOT NULL, Mounts TEXT NOT NULL, + LogPath TEXT NOT NULL, Privileged INTEGER NOT NULL, NoNewPrivs INTEGER NOT NULL, @@ -362,6 +363,7 @@ func (s *SQLState) ctrFromScannable(row scannable) (*Container, error) { shmSize int64 staticDir string mounts string + logPath string privileged int noNewPrivs int @@ -417,6 +419,7 @@ func (s *SQLState) ctrFromScannable(row scannable) (*Container, error) { &shmSize, &staticDir, &mounts, + &logPath, &privileged, &noNewPrivs, @@ -480,6 +483,7 @@ func (s *SQLState) ctrFromScannable(row scannable) (*Container, error) { ctr.config.ShmDir = shmDir ctr.config.ShmSize = shmSize ctr.config.StaticDir = staticDir + ctr.config.LogPath = logPath ctr.config.Privileged = boolFromSQL(privileged) ctr.config.NoNewPrivs = boolFromSQL(noNewPrivs) |