itgwiki_mirror 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -90,7 +90,7 @@ rsync = ask "rsync user@host:port:/path/to/mirror string (port is optional)?"
90
90
  # set up cron job
91
91
  #
92
92
  begin
93
- bin = `which itgwiki_mirror_backup`.chomp
93
+ bin = File.expand_path "#{dir}/bin/itgwiki_mirror_backup"
94
94
  command = "sudo -u#{user} #{bin} -u#{dbuser} -p#{dbpass} -d#{dbname} -w#{wiki} #{rsync}"
95
95
  File.open '/etc/cron.daily/itgwiki_mirror_backup', 'w', 0700 do |f|
96
96
  f.puts "#!/bin/sh"
@@ -114,7 +114,7 @@ FileUtils.chown_R user, user, wiki
114
114
  # set up cron job
115
115
  #
116
116
  begin
117
- bin = `which itgwiki_mirror_deploy`.chomp
117
+ bin = File.expand_path "#{dir}/bin/itgwiki_mirror_deploy"
118
118
  command = "exec sudo -u#{user} #{bin} -d#{dbname} -u#{dbuser} -p#{dbpass} -w#{wiki} -m#{mirror}"
119
119
  File.open '/etc/init/itgwiki_mirror_deploy.conf', 'w', 0600 do |f|
120
120
  f.puts UPSTART_TEMPLATE
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itgwiki_mirror
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Force