oneacct-export 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11028660948ab1ebf4a066115c4960f512820d61
4
- data.tar.gz: 3691aad825f365b05f56f442b3ea19ec217d5324
3
+ metadata.gz: fbb13a1a7e4fb9551033c6f76366219b375a9a8f
4
+ data.tar.gz: c1dbe229079dd112924d6baadeb3634a8a82657f
5
5
  SHA512:
6
- metadata.gz: 19760d8348e1d2777971987487720256e16f8ec2656b5123199588995250f8979c899f3b33d11b894af92a5085ec55ca8fc9cfe85cb0dadbbbb64ee5b6ba5ef7
7
- data.tar.gz: 5a775489516d588cacc82c382291d113132cae0d5fcd10f4bfad94b3656ee42c43bde1bb0be6b565c45fadbacd4a821d6a1c9bd0a4c38028f91c908f6a87a83c
6
+ metadata.gz: 399a1af0c6d7d6bc63344948f2213e062a4031c34fdd9e25f639b4d4583b839273104f6f8d0b5bb0da433a4eee21b3f3a886cd55fbe67c7173423aedde91949d
7
+ data.tar.gz: 3ae5121fa9963562628e16b445fea8780cad47b45a9787c91f1d7e356c4db4e3624967a0a52776698d0b0ff4e1f705c834ec3c038ef7e37524b075e1a08be051
@@ -44,6 +44,12 @@ get_pid() {
44
44
  cat "$pid_file"
45
45
  }
46
46
 
47
+ setup_dirs() {
48
+ mkdir -p "$run_dir"
49
+ chown "$user":"$user" "$run_dir"
50
+ }
51
+
52
+
47
53
  is_running() {
48
54
  [ -f "$pid_file" ] && ps `get_pid` > /dev/null 2>&1
49
55
  }
@@ -53,6 +59,7 @@ start() {
53
59
  echo "Already started"
54
60
  else
55
61
  echo "Starting $name ..."
62
+ setup_dirs
56
63
 
57
64
  cd "$run_dir"
58
65
  sudo -u "$user" RAILS_ENV=production SSL_CERT_DIR=$SSL_CERT_DIR ONEACCT_EXPORT_LOG_LEVEL=$ONEACCT_EXPORT_LOG_LEVEL $cmd >> "$stdout_log" 2>> "$stderr_log" &
@@ -1,3 +1,3 @@
1
1
  class OneacctExporter
2
- VERSION = '0.4.5'
2
+ VERSION = '0.4.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oneacct-export
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Kimle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-16 00:00:00.000000000 Z
11
+ date: 2017-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -273,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
273
273
  version: '0'
274
274
  requirements: []
275
275
  rubyforge_project:
276
- rubygems_version: 2.4.8
276
+ rubygems_version: 2.6.10
277
277
  signing_key:
278
278
  specification_version: 4
279
279
  summary: Exporting OpenNebula accounting data.