| Sv translation | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||
Во время обновления сервера Traffic Monitor конфигурационные файлы (например, с расширениями .conf, .cfg и .lua), которые были изменены во время использования предыдущей версии, не перезаписываются новыми. В тех же директориях создаются новые файлы с теми же названиями, но с расширением .conf.rpmnew, .cfg.rpmnew и .lua.rpmnew , соответственно. Это . Это сделано для того, чтобы поддержать возможность изменения структуры файлов новых версий. Для корректной работы Системы потребуется объединить файлы старой и новой версий.
Используйте любой из приведенных ниже способов объединения файлов. Объединение конфигурационных файлов в Midnight CommanderРассмотрим объединение на примере файлов postgresql.conf и postgresql.conf.rpmnew.
Файл postgresql.conf имеет вид: Файл postgresql.conf.rpmnew имеет вид: Для объединения требуется перенести данные из секций файла postgresql.conf в соответствующие секции файла postgresql.conf.rpmnew. Для этого:
Объединение конфигурационных файлов с помощью vimdiffДля работы с vimdiff на сервере должен установлен текстовый редактор vim. Рассмотрим объединение на примере файлов iwssiduser.lua и iwssiduser.lua.rpmnew. После обновления (при условии, если в штатный файл iwssiduser.lua вносились изменения) появится файл iwssiduser.lua.rpmnew. Необходимо корректно перенести все установленные ранее значения параметров и настроек из iwssiduser.lua .rpmnewв iwssiduser.lua.rpmnew. Для этого:
|
| Sv translation | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||
During the update of Traffic Monitor server nconfiguration files (e.g, files with .conf, .cfg, and .lua extensions) that were modified in when using the previous version are not , cannot be overwritten with the new files. The new files are created in the same directories and with the same names, but with .conf.rpmnew, .cfg.rpmne, and .lua.rpmnew extensions extension respectively.This allows you is done to support the ability to change the structure of new file versions. For correct operation of the System , you need to merge it is required merging files of an old and a new version. Merging .conf configuration files with .conf.rpmnew configuration filesBelow, you can see how files are merged by the example of
Use any files merging type specified below. Merging configuration files in Midnight CommanderLet's consider an example to merge postgresql.conf and postgresql.conf.rpmnew files.
The postgresql.conf file looks like: The postgresql.conf.rpmnew file looks like: To merge these files, you need to copy data from sections of the postgresql.conf file to the corresponding sections of the postgresql.conf.rpmnew file. For this:
Merging.luaconfiguration files by means of vimdiffTo work with .lua.rpmnew configuration filesBelow, you can see how files are merged by the example of iwssid.lua and iwssidvimdiff the editor Vim should be installed on a server. Let's consider an example of merging user.lua and user.lua.rpmnew files. After the update, the iwssiduser.lua. rpmnew file appears (if the original iwssiduser.lua file has been changed). You should copy all earlier specified values of parameters and settings from iwssiduser.lua to iwssiduser.lua.rpmnew. For To do this:
|




