Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
c53e9d17
Commit
c53e9d17
authored
Jan 03, 2016
by
Igor Pečovnik
Browse files
Samba fixes
parent
80b466f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
functions.sh
View file @
c53e9d17
...
...
@@ -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 st
op
| service smbd start >/dev/null 2>&1
service samba st
art
| service smbd start >/dev/null 2>&1
}
...
...
install.sh
View file @
c53e9d17
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment