From f6e2c7232b1254e66abe4d4b5829328ffaa123a9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 9 Nov 2022 20:46:49 +0100 Subject: luci-app-ksmbd: fix references to ksmbd.conf Update the configuration view to refer to the updated `ksmbd.conf` template file name as well. Supersedes: #6080 Fixes: f0e0bccfb8 ("luci-app-ksmbd: update menu dependencies") Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/ksmbd.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js') diff --git a/applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js b/applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js index 47b4bc0ff5..3c94b15eb3 100644 --- a/applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js +++ b/applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js @@ -46,14 +46,14 @@ return view.extend({ o = s.taboption('template', form.TextValue, '_tmpl', null, - _("This is the content of the file '/etc/ksmbd/smb.conf.template' from which your ksmbd configuration will be generated. \ + _("This is the content of the file '/etc/ksmbd/ksmbd.conf.template' from which your ksmbd configuration will be generated. \ Values enclosed by pipe symbols ('|') should not be changed. They get their values from the 'General Settings' tab.")); o.rows = 20; o.cfgvalue = function(section_id) { - return fs.trimmed('/etc/ksmbd/smb.conf.template'); + return fs.trimmed('/etc/ksmbd/ksmbd.conf.template'); }; o.write = function(section_id, formvalue) { - return fs.write('/etc/ksmbd/smb.conf.template', formvalue.trim().replace(/\r\n/g, '\n') + '\n'); + return fs.write('/etc/ksmbd/ksmbd.conf.template', formvalue.trim().replace(/\r\n/g, '\n') + '\n'); }; @@ -76,7 +76,7 @@ return view.extend({ o = s.option(form.Flag, 'read_only', _('Read-only')); o.enabled = 'yes'; o.disabled = 'no'; - o.default = 'no'; // smb.conf default is 'yes' + o.default = 'no'; // ksmbd.conf default is 'yes' o.rmempty = false; s.option(form.Flag, 'force_root', _('Force Root')); @@ -87,7 +87,7 @@ return view.extend({ o = s.option(form.Flag, 'guest_ok', _('Allow guests')); o.enabled = 'yes'; o.disabled = 'no'; - o.default = 'yes'; // smb.conf default is 'no' + o.default = 'yes'; // ksmbd.conf default is 'no' o.rmempty = false; o = s.option(form.Flag, 'inherit_owner', _('Inherit owner')); @@ -102,13 +102,13 @@ return view.extend({ o = s.option(form.Value, 'create_mask', _('Create mask')); o.maxlength = 4; - o.default = '0666'; // smb.conf default is '0744' + o.default = '0666'; // ksmbd.conf default is '0744' o.placeholder = '0666'; o.rmempty = false; o = s.option(form.Value, 'dir_mask', _('Directory mask')); o.maxlength = 4; - o.default = '0777'; // smb.conf default is '0755' + o.default = '0777'; // ksmbd.conf default is '0755' o.placeholder = '0777'; o.rmempty = false; -- cgit v1.2.3