Skip to content

Commit

Permalink
continued debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed Jul 13, 2024
1 parent 2ddf189 commit bdd4328
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .ci/azure-pipelines/install-environment_macos.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.

sudo dscl . list /Users | grep -v '^_'

echo "Configuring PostgreSQL..."

if [[ -f "/usr/local/var/postgres/postmaster.pid" ]]; then
# Workaround - see https://stackoverflow.com/a/41804478
rm "/usr/local/var/postgres/postmaster.pid"
fi

brew services restart -vvv postgresql
createdb

brew services start -vvv postgresql

cat /usr/local/var/log/[email protected]

echo "CREATE DATABASE mumble_test_db; "\
"CREATE USER mumble_test_user ENCRYPTED PASSWORD 'MumbleTestPassword'; "\
"GRANT ALL PRIVILEGES ON DATABASE mumble_test_db TO mumble_test_user;" | psql postgres
"GRANT ALL PRIVILEGES ON DATABASE mumble_test_db TO mumble_test_user;" | psql -d postgres


currentDir=$(pwd)
Expand Down
6 changes: 3 additions & 3 deletions .ci/install-environment_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Write-Host "Configuring PostgreSQL..."
$env:PATH += ";$env:PGBIN"
$env:PGPASSWORD="root"

pg_ctl restart -D "$env:PGDATA"
pg_ctl start -D "$env:PGDATA"

Write-Output ("CREATE DATABASE mumble_test_db; " +
"CREATE USER mumble_test_user ENCRYPTED PASSWORD 'MumbleTestPassword'; " +
Expand All @@ -147,14 +147,14 @@ Write-Output ("CREATE DATABASE mumble_test_db; " +
Write-Host "Configuring MySQL..."

#mysqld --verbose --help
Write-Output "[mysqld]`nlog-bin-trust-function-creators = 1" | Add-Content -Path C:/Windows/my.ini

mysqld --initialize-insecure --console
Start-Process mysqld

# Give the MySQL daemon some time to start up
Start-Sleep -Seconds 5

Write-Output "[mysqld]`nlog-bin-trust-function-creators = 1" | Add-Content -Path C:/Windows/my.ini

Write-Output ("CREATE DATABASE mumble_test_db; " +
"CREATE USER 'mumble_test_user'@'localhost' IDENTIFIED BY 'MumbleTestPassword'; " +
"GRANT ALL PRIVILEGES ON mumble_test_db.* TO 'mumble_test_user'@'localhost';") | mysql --user=root

0 comments on commit bdd4328

Please sign in to comment.