ktec-subtrac 0.1.33 → 0.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/subtrac.rb +10 -2
  3. metadata +1 -1
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 33
4
+ :patch: 34
data/lib/subtrac.rb CHANGED
@@ -284,8 +284,8 @@ module Subtrac
284
284
  # create the apache configuration
285
285
  apache.create_project(project)
286
286
 
287
- # make sure apache can operate on these files
288
- `sudo chown -R www-data:www-data #{install_dir}`
287
+ # fix privileges
288
+ give_apache_privileges()
289
289
 
290
290
  # store any user preferences for later use
291
291
  save_config()
@@ -308,6 +308,9 @@ module Subtrac
308
308
  trac = Trac.new(trac_dir, binding)
309
309
  trac.create_project(project)
310
310
 
311
+ # fix privileges
312
+ give_apache_privileges()
313
+
311
314
  # return the project
312
315
  project
313
316
 
@@ -315,6 +318,11 @@ module Subtrac
315
318
 
316
319
  private
317
320
 
321
+ def self.give_apache_priviledges
322
+ # make sure apache can operate on these files
323
+ `sudo chown -R www-data:www-data #{install_dir}`
324
+ end
325
+
318
326
  # confirms the current value with the user or accepts a new value if required
319
327
  def self.confirm_or_replace_value(prop, name)
320
328
  method(prop).call # initialise the property
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ktec-subtrac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.33
4
+ version: 0.1.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Salisbury