Update samba config for ogboot
ogboot/pipeline/tag This commit looks good
Details
ogboot/pipeline/tag This commit looks good
Details
parent
63df8ff854
commit
05540ffc61
|
@ -152,10 +152,9 @@ configure_nginx_and_fpm() {
|
||||||
|
|
||||||
configure_samba(){
|
configure_samba(){
|
||||||
echo "Configurando Samba"
|
echo "Configurando Samba"
|
||||||
mkdir -p /etc/samba/opengnsys/
|
cp /opt/opengnsys/ogboot/etc/samba/smb-ogboot.conf /etc/samba/
|
||||||
cp /opt/opengnsys/ogboot/etc/samba/smb-ogboot.conf /etc/samba/opengnsys/
|
sed -i "s|__OGBOOTDIR__|$OGBOOT_ROOT|g" /etc/samba/smb-ogboot.conf
|
||||||
sed -i "s|__OGBOOT_DIR__|$OGBOOT_ROOT|g" /etc/samba/opengnsys/smb-ogboot.conf
|
INCLUDE_LINE="include = /etc/samba/smb-ogboot.conf"
|
||||||
INCLUDE_LINE="include = /etc/samba/opengnsys/smb-ogboot.conf"
|
|
||||||
if ! grep -q "$INCLUDE_LINE" /etc/samba/smb.conf; then
|
if ! grep -q "$INCLUDE_LINE" /etc/samba/smb.conf; then
|
||||||
echo "$INCLUDE_LINE" | sudo tee -a /etc/samba/smb.conf > /dev/null
|
echo "$INCLUDE_LINE" | sudo tee -a /etc/samba/smb.conf > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -4,13 +4,3 @@
|
||||||
writeable = no
|
writeable = no
|
||||||
path = __OGBOOTDIR__/tftpboot
|
path = __OGBOOTDIR__/tftpboot
|
||||||
guest ok = no
|
guest ok = no
|
||||||
|
|
||||||
|
|
||||||
[oglog]
|
|
||||||
comment = OpenGnsys Log
|
|
||||||
browseable = no
|
|
||||||
writeable = yes
|
|
||||||
locking = no
|
|
||||||
path = __OGBOOTDIR__/client_log
|
|
||||||
guest ok = no
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue