File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ MSSQL_SA_PASSWORD='<YourStrong!Passw0rd>'
4444MSSQL_PID=' evaluation'
4545
4646# Install SQL Server Agent (recommended)
47- SQL_INSTALL_AGENT =' y'
47+ SQL_ENABLE_AGENT =' y'
4848
4949# Install SQL Server Full Text Search (optional)
5050# SQL_INSTALL_FULLTEXT='y'
@@ -80,11 +80,12 @@ echo PATH="$PATH:/opt/mssql-tools/bin" >> ~/.bash_profile
8080echo ' export PATH="$PATH:/opt/mssql-tools/bin"' >> ~ /.bashrc
8181source ~ /.bashrc
8282
83- # Optional SQL Server Agent installation :
84- if [ ! -z $SQL_INSTALL_AGENT ]
83+ # Optional Enable SQL Server Agent :
84+ if [ ! -z $SQL_ENABLE_AGENT ]
8585then
86- echo Installing SQL Server Agent...
87- sudo yum install -y mssql-server-agent
86+ echo Enable SQL Server Agent...
87+ sudo /opt/mssql/bin/mssql-conf set sqlagent.enabled true
88+ sudo systemctl restart mssql-server
8889fi
8990
9091# Optional SQL Server Full Text Search installation:
You can’t perform that action at this time.
0 commit comments