Changes

From SME Server
Jump to navigationJump to search
Line 126: Line 126:  
* Den Wert eines Datenbank-Eintrags mit einem neuen Wert überschreiben
 
* Den Wert eines Datenbank-Eintrags mit einem neuen Wert überschreiben
   −
This design allows each package to provide part of the system configuration, or migrate the system configuration values as required. Note that a single database property can only be "owned" by one package. Database initialization is run during system install, system upgrade and after new software has been installed.
+
Dieses Design erlaubt jedem Softwarepaket, Teile des Gesamtsystems zu konfigurieren oder die Konfigurationswerte, auf gewünschte Werte zu ändern.  
   −
If you examine the /etc/e-smith/db/configuration/ directory you will see three subdirectories: defaults/, force/ and migrate/ to match the three options above. A similar structure exists for each of the other databases. A new database can be created by populating a new directory tree under the /etc/e-smith/db/ directory.
+
{{DrawBoxNote/de|Inhalt="Besitzer" einer Datenbank-Eigenschaft ist immer ein einzelnes Softwarepaket.Ein einzelnes(einziges) Datenbankeigentum(-besitz) nur von einem Paket im Besitz sein kann. Die Datenbank-Initialisierung wird während des Systems-Erstinstallation, beim System-Upgrade und nach der Installation neuer Softwarepakete durchgeführt.}}
   −
[root@gsxdev1 db]# cd /etc/e-smith/db
+
Das Verzeichnis ''/etc/e-smith/db/configuration/'' besteht aus drei Unterverzeichnissen: defaults/, force/ und migrate/, mit denen die Datenbank-Initialisierung unterstützt wird. Eine ähnliche Struktur finden Sie auch für jede der anderen Datenbanken. Eine neue Datenbank wird über ein neues Verzeichnis im Verzeichnisbaum ''/etc/e-smith/db/'' angelegt.
[root@gsxdev1 db]# ls
  −
accounts      domains      networks      yum_installed
  −
backups        hosts        spamassassin  yum_repositories
  −
configuration  mailpatterns  yum_available  yum_updates
     −
[root@gsxdev1 db]# ls configuration/
+
[root@gsxdev1 db]# cd /etc/e-smith/db
defaults force migrate
+
[root@gsxdev1 db]# ls
 +
accounts      domains      networks      yum_installed
 +
backups        hosts        spamassassin  yum_repositories
 +
configuration  mailpatterns  yum_available yum_updates
   −
Defaults files
+
[root@gsxdev1 db]# ls configuration/
 +
defaults  force  migrate
 +
 
 +
Dateien unter ''defaults'
    
Defaults files are simple text files. If the corresponding database key/property already exists, it is skipped. Otherwise, the key/property is created and the value loaded. For example, this file:
 
Defaults files are simple text files. If the corresponding database key/property already exists, it is skipped. Otherwise, the key/property is created and the value loaded. For example, this file:
1,346

edits

Navigation menu