robert_cz Posted February 12, 2017 Share Posted February 12, 2017 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.