six-updater-web 0.15.1 → 0.15.2
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -225,17 +225,23 @@ class MainController < ApplicationController
|
|
225
225
|
|
226
226
|
setting = Appsetting.new unless setting
|
227
227
|
|
228
|
-
|
229
|
-
|
230
|
-
|
228
|
+
if setting.real_path
|
229
|
+
unless File.directory?(setting.real_path)
|
230
|
+
@msg << "<br /><b>WARNING:</b> ArmA folder not set or non existent: #{setting.real_path}"
|
231
|
+
end
|
232
|
+
else
|
233
|
+
@msg << "<br /><b>WARNING:</b> ArmA folder not set or non existent: #{setting.real_path}"
|
231
234
|
end
|
232
235
|
|
233
|
-
|
234
|
-
|
236
|
+
if setting.modpath
|
237
|
+
unless File.directory?(setting.real_modpath)
|
238
|
+
@msg << "<br /><b>WARNING:</b> Mod installation folder not set or non existent: #{setting.real_modpath}"
|
239
|
+
end
|
235
240
|
end
|
236
241
|
|
237
|
-
|
238
|
-
|
242
|
+
procs = setting.processes
|
243
|
+
unless procs.empty?
|
244
|
+
@msg << "<br /><b>WARNING:</b> There seem to be open arma processes: #{setting.real_exe}<br />Pids: #{procs}"
|
239
245
|
end
|
240
246
|
|
241
247
|
preset.all_mods(server).each do |mod|
|