[pve-devel] [PATCH common/widget-toolkit/manager] make /etc/hosts editable via gui

Dominik Csapak d.csapak at proxmox.com
Fri Aug 24 12:34:06 CEST 2018


this series aims to make /etc/hosts view/editable via the gui
the first 2 patches of pve-common are strictly not necessary for the series,
but improve the read_file to also read UTF-8 comments correctly

(as in if you have utf8 characters in your /etc/hosts or /etc/network/interfaces,
they are shown correctly now, not sure if how i did it is the right way though)

pve-common:

Dominik Csapak (3):
  INotify.pm: add binmode utf8 to read/update_file
  INotify.pm: use run_command instead of open for calling diff
  INotify.pm: add methods for reading/writing /etc/hosts

 src/PVE/INotify.pm | 65 ++++++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 56 insertions(+), 9 deletions(-)

proxmox-widget-toolkit:

Dominik Csapak (1):
  add node/HostsView

 Makefile          |  1 +
 node/HostsView.js | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)
 create mode 100644 node/HostsView.js

pve-manager:

Dominik Csapak (2):
  add /node/{NODE}/hosts API Call
  make /etc/hosts editable via gui

 PVE/API2/Nodes.pm           | 73 +++++++++++++++++++++++++++++++++++++++++++++
 www/manager6/node/Config.js |  9 ++++++
 2 files changed, 82 insertions(+)

-- 
2.11.0





More information about the pve-devel mailing list