Skip to content

Commit

Permalink
Add dbfarm output variable
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivanruth committed Jan 27, 2025
1 parent 5b2b6c7 commit 73ab73f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ outputs:
versionnumber:
description: "installed version of MonetDB, for example 11.51.5"
value: ${{ steps.versionlookup.outputs.numeric }}
dbfarm:
description: "location of the started dbfarm (not on Windows)"
value: ${{ steps.set_output.outputs.dbfarm }}

# input: version
# output: version_number
Expand Down
7 changes: 5 additions & 2 deletions install-linux-bin.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash

set -e -x

Expand Down Expand Up @@ -72,8 +72,10 @@ install_rpms() {
# Install the packages
if type -P yum >/dev/null; then
install_rpms
echo "dbfarm=/usr/local/dbfarm" >>github.output
elif type -P apt-get >/dev/null; then
install_debs
echo "dbfarm=/var/monetdb5/dbfarm" >>github.output
else
echo 'Cannot find yum or apt-get'
exit 1
Expand All @@ -89,7 +91,7 @@ echo "dynsuffix=so" >>github.output


# Start and create database
sudo systemctl enable monetdbd
#sudo systemctl enable monetdbd
if sudo systemctl start monetdbd; then
# running on a 'real' host
true
Expand All @@ -100,6 +102,7 @@ else
sudo chown monetdb:monetdb "$DBFARM"
sudo -u monetdb monetdbd create "$DBFARM"
sudo -u monetdb monetdbd start "$DBFARM"
echo "dbfarm=$DBFARM" >>github.output
fi

sudo -u monetdb monetdb create -pmonetdb demo monetdb
1 change: 1 addition & 0 deletions install-macos-bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ echo "bindir=$prefix/bin" >>github.output
echo "includedir=$prefix/include/monetdb" >>github.output
echo "libdir=$prefix/lib" >>github.output
echo "dynsuffix=dylib" >>github.output
echo "dbfarm=$DBFARM" >>github.output

0 comments on commit 73ab73f

Please sign in to comment.