Commit 6f687d97 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play mssql-server: support --auto (--non-interactive)

parent 8bfb639b
......@@ -77,6 +77,8 @@ __epm_play_run()
set_sudo
export SUDO
[ -n "$non_interactive" ] && export EPM_AUTO="--auto"
local bashopt=''
[ -n "$verbose" ] && bashopt='-x' && export EPM_VERBOSE="$verbose"
#info "Running $($script --description 2>/dev/null) ..."
......
......@@ -35,9 +35,16 @@ case "$($DISTRVENDOR -d)" in
;;
esac
$SUDO /opt/mssql/bin/mssql-conf setup accept-eula
serv mssql-server on
if [ -z "$EPM_AUTO" ] ; then
$SUDO /opt/mssql/bin/mssql-conf setup accept-eula
serv mssql-server on
else
cat <<EOF
Run follow commands manually for complete the setup:
# /opt/mssql/bin/mssql-conf setup accept-eula
# serv mssql-server on
EOF
fi
cat <<EOF
......
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