Commit 879fcd991b1bb09abea5c2a1e7d4f12377c674ba
1 parent
46ea1799
Exists in
master
and in
29 other branches
stoa-plugin: use file relative path on install
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
plugins/stoa/install.rb
1 | 1 | require 'fileutils' |
2 | 2 | |
3 | -config_path = File.join('plugins', 'stoa', 'config.yml') | |
4 | -config_template = File.join('plugins', 'stoa', 'config.yml.dist') | |
3 | +config_path = File.join(File.dirname(__FILE__), 'config.yml') | |
4 | +config_template = File.join(File.dirname(__FILE__), 'config.yml.dist') | |
5 | 5 | FileUtils.cp(config_template, config_path) if !File.exist?(config_path) | ... | ... |