Skip to content

Commit

Permalink
bug fixes on powershell script
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiraz Adam authored and Shiraz Adam committed Oct 6, 2024
1 parent 6a0e115 commit f501e39
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion developer-edition/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ENV CU=$CU
ENV VERSION=${VERSION}
ENV sa_password="Vmw0NTY3dmxzaTI1MDAh"
ENV attach_dbs="[]"
ENV accept_eula="_"
ENV accept_eula="Y"
ENV sa_password_path="C:\ProgramData\Docker\secrets\sa-password"


Expand Down
2 changes: 1 addition & 1 deletion developer-edition/start.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ else
# start the service
Write-Host "Starting SQL Server"
$SqlServiceName = 'MSSQL$MSSQLDEV';
start-service "'${$SqlServiceName}'"
start-service $SqlServiceName

if($sa_password -eq "_") {
if (Test-Path $env:sa_password_path) {
Expand Down
2 changes: 1 addition & 1 deletion express-edition/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ENV CU=$CU
ENV VERSION=${VERSION}
ENV sa_password="Vmw0NTY3dmxzaTI1MDAh"
ENV attach_dbs="[]"
ENV accept_eula="_"
ENV accept_eula="Y"
ENV sa_password_path="C:\ProgramData\Docker\secrets\sa-password"


Expand Down
2 changes: 1 addition & 1 deletion express-edition/start.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ else
# start the service
Write-Host "Starting SQL Server"
$SqlServiceName = 'MSSQL$SQLEXPRESS';
start-service "'${$SqlServiceName}'"
start-service $SqlServiceName

if($sa_password -eq "_") {
if (Test-Path $env:sa_password_path) {
Expand Down

0 comments on commit f501e39

Please sign in to comment.