refs #2355 deletes obsolete samba directory and changes postinstall to use samba-ogboot.tmpl
parent
8087243462
commit
08ea03c6ef
|
|
@ -153,7 +153,7 @@ configure_nginx_and_fpm() {
|
||||||
|
|
||||||
configure_samba(){
|
configure_samba(){
|
||||||
echo "Configurando Samba"
|
echo "Configurando Samba"
|
||||||
cp /opt/opengnsys/ogboot/etc/samba/smb-ogboot.conf /etc/samba/
|
cp /opt/opengnsys/ogboot/etc/smb-ogboot.conf.tmpl /etc/samba/smb-ogboot.conf
|
||||||
sed -i "s|__OGBOOTDIR__|$OGBOOT_ROOT|g" /etc/samba/smb-ogboot.conf
|
sed -i "s|__OGBOOTDIR__|$OGBOOT_ROOT|g" /etc/samba/smb-ogboot.conf
|
||||||
INCLUDE_LINE="include = /etc/samba/smb-ogboot.conf"
|
INCLUDE_LINE="include = /etc/samba/smb-ogboot.conf"
|
||||||
if ! grep -q "$INCLUDE_LINE" /etc/samba/smb.conf; then
|
if ! grep -q "$INCLUDE_LINE" /etc/samba/smb.conf; then
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
[tftpboot]
|
|
||||||
comment = OpenGnsys init files
|
|
||||||
browseable = no
|
|
||||||
writeable = no
|
|
||||||
path = __OGBOOTDIR__/tftpboot
|
|
||||||
guest ok = no
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
[ogclient]
|
|
||||||
comment = OpenGnsys Client
|
|
||||||
browseable = no
|
|
||||||
writeable = no
|
|
||||||
locking = no
|
|
||||||
path = __OGBOOTDIR__/client
|
|
||||||
guest ok = no
|
|
||||||
Loading…
Reference in New Issue