diff --git a/README.md b/README.md index be57d01..7e22929 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,9 @@ - password prompt now checks exit code if failure, restart password function - copy of files from /home/kali/* to /root now uses the actual username not just 'kali' + - menu option 2 - fix smb.conf + - function updated to use sed -i instead of prior method + - fix_sources function updated to use wildcards - Menu clean up, added bold color to "New VM Setup" Menu option N diff --git a/pimpmykali.sh b/pimpmykali.sh index f2d10ca..c5097ab 100755 --- a/pimpmykali.sh +++ b/pimpmykali.sh @@ -558,9 +558,7 @@ fix_smbconf () { echo -e "\n $green /etc/samba/smb.conf " echo -e "\n $redminus client min protocol is already set not changing\n $redminus client max protocol is already set not changing" else - cat /etc/samba/smb.conf | sed 's/\[global\]/\[global\]\n client min protocol = CORE\n client max protocol = SMB3\n''/' > /tmp/fix_smbconf.tmp - cat /tmp/fix_smbconf.tmp > /etc/samba/smb.conf - rm -f /tmp/fix_smbconf.tmp + sed 's/\[global\]/\[global\]\n client min protocol = CORE\n client max protocol = SMB3\n''/' -i /etc/samba/smb.conf echo -e "\n $greenplus /etc/samba/smb.conf updated" echo -e "\n $greenplus added : client min protocol = CORE\n $greenplus added : client max protocol = SMB3" fi