samba-container/run.sh

9 lines
122 B
Bash
Executable file

#!/bin/bash
(echo "$SMBPW"; echo "$SMBPW") | smbpasswd -sa share
if [ $? -eq 0 ]; then
smbd -FS --debuglevel=1
fi