Template change

NethServer Version: NethServer release 6.9 (Final)
Module: Samba / Owncloud

Where can I find the template for the file smb.conf and php.ini?

If changes are made to the system via the Dash-Board, these lines are missing:

smb.conf --> protocol = SMB2

php.ini --> magic_quotes_gpc = Off + magic_quotes_runtime = Off + magic_quotes_sybase = Off

For this I would like to adapt the templates of the files.

Thanks

Nicky

Samba templates: /etc/e-smith/templates/etc/samba/smb.conf/*
Php templates: /etc/e-smith/templates/etc/php.ini/*

But don’t change the original templates, create custom templates in templates-custom as the original templates may be overwritten by a future software update:

For samba:

mkdir -p /etc/e-smith/templates-custom/etc/samba/smb.conf echo "protocol = SMB2" > /etc/e-smith/templates-custom/etc/samba/smb.conf/11protocol signal-event nethserver-samba-update

For php:

mkdir -p /etc/e-smith/templates-custom/etc/php.ini echo "magic_quotes_gpc = Off magic_quotes_runtime = Off magic_quotes_sybase = Off" > /etc/e-smith/templates-custom/etc/php.ini/20customphp signal-event nethserver-php-update

1 Like

:+1:

it works great

Nicky

1 Like