filbunke 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/filbunked +8 -5
- data/doc/examples/filbunke_config.yml +1 -1
- data/filbunke.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
data/bin/filbunked
CHANGED
@@ -19,9 +19,12 @@ if opts['--help'] || opts['--config'].blank?
|
|
19
19
|
puts "Usage: filbunked -c <config_file.yml>"
|
20
20
|
exit 1
|
21
21
|
else
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
22
|
+
child_process = fork {
|
23
|
+
config_file = File.read(opts['--config'])
|
24
|
+
config = YAML.load(config_file)
|
25
|
+
daemon = Filbunke::Daemon.new(config)
|
26
|
+
Process::UID.change_privilege(Etc.getpwnam(config["user"]).uid)
|
27
|
+
daemon.run!
|
28
|
+
}
|
29
|
+
Process.detach(child_process)
|
27
30
|
end
|
@@ -8,7 +8,7 @@ callback_path: '/path/to/filebunke/config.yml'
|
|
8
8
|
repositories:
|
9
9
|
cache:
|
10
10
|
local_path: '/v5/cachetest'
|
11
|
-
filbunke_server_host: '
|
11
|
+
filbunke_server_host: 'filebunkehost'
|
12
12
|
filbunke_server_port: 8080
|
13
13
|
filbunke_server_repository: 'cache'
|
14
14
|
file_url_username: 'content'
|
data/filbunke.gemspec
CHANGED