Jump to content

Samba-server - drobne błędy


robert_cz

Recommended Posts

Znalazłem drobne kosmetyczne błędy w konfiguracji paczki.

 

1) w skrypcie postinst jest drobny błąd w poleceniu Echo w przypadku wykrycia eth0:

if ifconfig | grep ra0 > /dev/null; then

if [ $ling == pl_PL ]; then

echo "Wykryto kontroler WiFi ra0"

echo "Generuję przykładową konfigurację dla IP ra0"

else

echo "Detected WiFi Controller ra0"

echo "Generating a sample configuration for IP ra0"

fi

IP_ADDR=`ifconfig ra0| grep -w inet | awk '{print $2}' | cut -d: -f 2`

# generuj_konfig > /etc/samba/smb.conf

generuj_konfig > /etc/samba/smb.conf.sample

elif ifconfig | grep eth0 > /dev/null; then

if [ $ling == pl_PL ]; then

echo "Wykryto kontroler WiFi ra0"

echo "Generuję przykładową konfigurację dla IP ra0"

else

echo "Detected WiFi Controller ra0"

echo "Generating a sample configuration for IP ra0"

fi

IP_ADDR=`ifconfig eth0| grep -w inet | awk '{print $2}' | cut -d: -f 2`

generuj_konfig > /etc/samba/smb.conf.sample

fi

 

2) w samej paczce znajdują się już puste pliki

/etc/samba/smb.conf i /etc/samba/smb.conf.sample

co oznacza, że ta część nigdy się nie wykona.

 

if [ ! -e /etc/samba/smb.conf ]; then
cp /etc/samba/smb.conf.sample /etc/samba/smb.conf
fi

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...