]> err.no Git - pwstore/commitdiff
Make it possible to override what .users file to use
authorTollef Fog Heen <tfheen@err.no>
Tue, 25 Feb 2014 12:41:55 +0000 (13:41 +0100)
committerTollef Fog Heen <tfheen@err.no>
Tue, 25 Feb 2014 17:01:58 +0000 (18:01 +0100)
pws.rb

diff --git a/pws.rb b/pws.rb
index 1698451f6aabd7c7fa3f19df3859a264c7f1fd99..739b2086aa8e03045102f94abb8d3b32fb2813a2 100755 (executable)
--- a/pws.rb
+++ b/pws.rb
@@ -298,7 +298,7 @@ class GroupConfig
 
   def parse_file
     begin
-      f = File.open('.users')
+      f = File.open(File.join(@dirname, '.users'))
     rescue Exception => e
       STDERR.puts e
       exit(1)