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
b9134155
Commit
b9134155
authored
Jan 03, 2016
by
Igor Pečovnik
Browse files
further fixes
parent
287135f7
Changes
1
Show whitespace changes
Inline
Side-by-side
functions.sh
View file @
b9134155
...
@@ -348,15 +348,15 @@ SMBGROUP=$(whiptail --inputbox "What is your samba group?" 8 78 $SMBGROUP --titl
...
@@ -348,15 +348,15 @@ SMBGROUP=$(whiptail --inputbox "What is your samba group?" 8 78 $SMBGROUP --titl
exitstatus=
$?
; if [
$exitstatus
= 1 ]; then exit 1; fi
exitstatus=
$?
; if [
$exitstatus
= 1 ]; then exit 1; fi
#
#
debconf-apt-progress -- apt-get -y install samba samba-common-bin
debconf-apt-progress -- apt-get -y install samba samba-common-bin
useradd
$SMBUSER
useradd
$SMBUSER
checkout
echo -ne "
$SMBPASS
\n
$SMBPASS
\n
" | passwd
$SMBUSER
echo -ne "
$SMBPASS
\n
$SMBPASS
\n
" | passwd
$SMBUSER
>/dev/null 2>&1
echo -ne "
$SMBPASS
\n
$SMBPASS
\n
" | smbpasswd -a -s
$SMBUSER
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
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 /ext
mkdir
-p
/ext
chmod -R 777 /ext
chmod -R 777 /ext
service samba stop | service smbd start >/dev/null 2>&1
service samba stop | service smbd start >/dev/null 2>&1
}
}
...
...
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