Skip to content

Commit

Permalink
Samba fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Jan 3, 2016
1 parent 80b466f commit c53e9d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions functions.sh
Expand Up @@ -354,14 +354,14 @@ debconf-apt-progress -- apt-get -y install samba samba-common-bin
useradd $SMBUSER
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
service samba stop | service smbd stop
service samba stop | service smbd stop >/dev/null 2>&1
cp scripts/smb.conf /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/SUBNET/$SUBNET/" /etc/samba/smb.conf
mkdir -p /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
}


Expand Down
2 changes: 1 addition & 1 deletion install.sh
Expand Up @@ -69,7 +69,7 @@ do
if [ "$i" == "Rpi monitor" ] ; then
install_rpimonitor
fi
if [ "$i" == "Ad blocker" ] ; then
if [ "$i" == "Pi hole" ] ; then
curl -L install.pi-hole.net | bash
fi
if [ "$i" == "Transmission" ] ; then
Expand Down

0 comments on commit c53e9d1

Please sign in to comment.