Update samba config for ogboot
ogboot/pipeline/tag This commit looks good Details

main
Nicolas Arenas 2025-03-26 19:13:13 +01:00
parent 63df8ff854
commit 05540ffc61
2 changed files with 3 additions and 14 deletions

View File

@ -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

View File

@ -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