modify-template --value-file doesn't read multiple lines

When I use the "virtualmin modify-template" command and try to update a setting with the "--value-file" option, only the first line is read in. For example:

With a file that contains two lines, running this command:

virtualmin modify-template --id 0 --setting logrotate_files --value-file /path/to/file-with-two-lines

Updates the "Server Templates -> Default Settings -> Log File Rotation -> Additional files to rotate" field, but it only contains the first line of the file.

Status: 
Closed (fixed)

Comments

Thanks for pointing this out - this will be fixed in the next Virtualmin release (5.06).

Status: Active ยป Fixed