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.
- data/VERSION.yml +1 -1
- data/lib/subtrac.rb +10 -2
- metadata +1 -1
data/VERSION.yml
CHANGED
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
|
-
#
|
|
288
|
-
|
|
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
|