$darkmode
Elektra 0.9.14
|
kdb install-config-file <elektra path> <config file> [<format>]
<elektra path>
is a path in Elektra<config file>
is some file on the filesystemline
will be used as <format>
if <format>
is unspecified.
The script has to be called as administrator (e.g. with sudo
).
This script installs or merges configuration files from the file system into Elektra. There are two possible scenarios:
<elektra path>
is empty. The script<config file>
into a special path to preserve origin version.<config file>
into <elektra path>
as our version. This version can then be safely modified.<elektra path>
already contains data the script performs a three-way merge (using kdb cmerge
) between the file at <config file>
(their), the <elektra path>
(our) and the preserved key set (base) from step 1 in scenario 1.To install the config file at ~/.config/installing.ini
we can use the following command
kdb install-config-file user:/tests/installing installing.ini ini