Commit 116d8f0e authored by Paul Cammish's avatar Paul Cammish
Browse files

Added uid/gid_override when returning values

parent 81e3fe4d
......@@ -106,13 +106,11 @@ module Symbiosis
end
def uid
File.stat(self.public_dir).uid
# @domain.uid
@domain.uid
end
def gid
File.stat(self.public_dir).gid
# @domain.gid
@domain.gid
end
def is_single_user?
......
......@@ -180,8 +180,10 @@ begin
#
# Work out results before printing.
#
results = [ "uid:#{user.uid}",
"gid:#{user.gid}",
uid_override = File.stat(#{user.chroot_dir}).uid
gid_override = File.stat(#{user.chroot_dir}).gid
results = [ "uid:#{uid_override}",
"gid:#{gid_override}",
"dir:#{user.chroot_dir}" ]
results << "user_quota_size:#{user.quota}" unless user.quota.nil? or user.quota == 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment