summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-07 11:46:39 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-07 11:46:39 +0100
commit26eae9e70097be1cbff8baba9c3641512bcf6635 (patch)
treee7f5489ba14fd53fab3c8467ad2467219e050026 /config
parent45761a957746f9787ffe438b14014a6913cfabcf (diff)
Different syntax.
Diffstat (limited to 'config')
-rw-r--r--config/backup.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/backup.rb b/config/backup.rb
index 0057f01..e5816c1 100644
--- a/config/backup.rb
+++ b/config/backup.rb
@@ -29,8 +29,8 @@ Backup::Model.new(:GS5, 'GS5 backup') do
##
# Faxes
#
- archive :faxes do |archive|
- if File.exists?('/opt/gemeinschaft/public/uploads/fax_document')
+ if File.exists?('/opt/gemeinschaft/public/uploads/fax_document')
+ archive :faxes do |archive|
archive.add '/opt/gemeinschaft/public/uploads/fax_document'
end
end
@@ -38,8 +38,8 @@ Backup::Model.new(:GS5, 'GS5 backup') do
##
# Voicemails
#
- archive :voicemails do |archive|
- if File.exists?('/var/opt/gemeinschaft/freeswitch/voicemail')
+ if File.exists?('/var/opt/gemeinschaft/freeswitch/voicemail')
+ archive :voicemails do |archive|
archive.add '/var/opt/gemeinschaft/freeswitch/voicemail'
end
end