Commit c53e9d17 authored by Igor Pečovnik's avatar Igor Pečovnik
Browse files

Samba fixes

parent 80b466f4
...@@ -354,14 +354,14 @@ debconf-apt-progress -- apt-get -y install samba samba-common-bin ...@@ -354,14 +354,14 @@ debconf-apt-progress -- apt-get -y install samba samba-common-bin
useradd $SMBUSER useradd $SMBUSER
echo -ne "$SMBPASS\n$SMBPASS\n" | passwd $SMBUSER >/dev/null 2>&1 echo -ne "$SMBPASS\n$SMBPASS\n" | passwd $SMBUSER >/dev/null 2>&1
echo -ne "$SMBPASS\n$SMBPASS\n" | smbpasswd -a -s $SMBUSER >/dev/null 2>&1 echo -ne "$SMBPASS\n$SMBPASS\n" | smbpasswd -a -s $SMBUSER >/dev/null 2>&1
service samba stop | service smbd stop service samba stop | service smbd stop >/dev/null 2>&1
cp scripts/smb.conf /etc/samba/smb.conf cp scripts/smb.conf /etc/samba/smb.conf
sed -i "s/SMBGROUP/$SMBGROUP/" /etc/samba/smb.conf sed -i "s/SMBGROUP/$SMBGROUP/" /etc/samba/smb.conf
sed -i "s/SMBUSER/$SMBUSER/" /etc/samba/smb.conf sed -i "s/SMBUSER/$SMBUSER/" /etc/samba/smb.conf
sed -i "s/SUBNET/$SUBNET/" /etc/samba/smb.conf sed -i "s/SUBNET/$SUBNET/" /etc/samba/smb.conf
mkdir -p /ext mkdir -p /ext
chmod -R 777 /ext chmod -R 777 /ext
service samba stop | service smbd start >/dev/null 2>&1 service samba start | service smbd start >/dev/null 2>&1
} }
......
...@@ -69,7 +69,7 @@ do ...@@ -69,7 +69,7 @@ do
if [ "$i" == "Rpi monitor" ] ; then if [ "$i" == "Rpi monitor" ] ; then
install_rpimonitor install_rpimonitor
fi fi
if [ "$i" == "Ad blocker" ] ; then if [ "$i" == "Pi hole" ] ; then
curl -L install.pi-hole.net | bash curl -L install.pi-hole.net | bash
fi fi
if [ "$i" == "Transmission" ] ; then if [ "$i" == "Transmission" ] ; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment