Code

We've only two cases
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 Oct 2009 12:32:36 +0000 (12:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 Oct 2009 12:32:36 +0000 (12:32 +0000)
- Snapshot enabled -> We require all variables to be set
- Snapshot disabled-> Insert empty dummy value

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14557 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/contrib/gosa.conf

index 7e894e25659938c332c4fb79b7c63e51bcbeb17e..663b8f887d93ed6b730c2aa67649e59c21197d15 100644 (file)
 {/if}
 {if $cv.generic_settings.snapshot_active}  
               enableSnapshots="true"
-{if $cv.generic_settings.snapshot_base != ""}
               snapshotBase="{$cv.generic_settings.snapshot_base}"
-{/if}
-{if $cv.generic_settings.snapshot_user != ""}
               snapshotAdminDn="{$cv.generic_settings.snapshot_user}"
-{/if}
-{if $cv.generic_settings.snapshot_password != ""}
               snapshotAdminPassword="{$cv.generic_settings.snapshot_password}"
-{/if}
-{if $cv.generic_settings.snapshot_server != ""}
               snapshotURI="{$cv.generic_settings.snapshot_server}"
-{/if}
+{else}
+              enableSnapshots="false"
+              snapshotBase=""
+              snapshotAdminDn=""
+              snapshotAdminPassword=""
+              snapshotURI=""
 {/if}
               config="ou=gosa,ou=configs,ou=systems,{$cv.base}">