diff --git a/src/acct/watch_helper.rb b/src/acct/watch_helper.rb index 5873211787..ce610feee5 100644 --- a/src/acct/watch_helper.rb +++ b/src/acct/watch_helper.rb @@ -5,13 +5,16 @@ module WatchHelper ONE_LOCATION=ENV["ONE_LOCATION"] if !ONE_LOCATION - ACCTD_CONF="/etc/one/acctd.conf" - ACCT_DB="/var/one/oneacct.db" + VAR_LOCATION = "/var/lib/one" + ETC_LOCATION = "/etc/one" else - ACCTD_CONF=ONE_LOCATION+"/etc/acctd.conf" - ACCT_DB=ONE_LOCATION+"/var/oneacct.db" + VAR_LOCATION = ONE_LOCATION + "/var" + ETC_LOCATION = ONE_LOCATION + "/etc" end + ACCTD_CONF = ETC_LOCATION + "/acctd.conf" + ACCT_DB = VAR_LOCATION + "/oneacct.db" + CONF = YAML.load_file(ACCTD_CONF) if CONF[:DB] diff --git a/src/cli/etc/group.default b/src/cli/etc/group.default index 98b60b3931..b8ad0a1e41 100644 --- a/src/cli/etc/group.default +++ b/src/cli/etc/group.default @@ -1,4 +1,4 @@ # This rule allows users in the new group to create common resources -VM+NET+IMAGE+TEMPLATE/* CREATE +VM+NET+IMAGE+TEMPLATE/* CREATE+INFO_POOL_MINE # This rule allows users in the group to deploy VMs in any host in the cloud HOST/* USE diff --git a/src/sunstone/sunstone-server.rb b/src/sunstone/sunstone-server.rb index 962912e901..cadc3eaad2 100755 --- a/src/sunstone/sunstone-server.rb +++ b/src/sunstone/sunstone-server.rb @@ -24,7 +24,7 @@ if !ONE_LOCATION VAR_LOCATION = "/var/lib/one" RUBY_LIB_LOCATION = "/usr/lib/one/ruby" CONFIGURATION_FILE = "/etc/one/sunstone-server.conf" - PLUGIN_CONFIGURATION_FILE = "/etc/sunstone-plugins.yaml" + PLUGIN_CONFIGURATION_FILE = "/etc/one/sunstone-plugins.yaml" else VAR_LOCATION = ONE_LOCATION+"/var" LOG_LOCATION = ONE_LOCATION+"/var"