macos fixes - bash on macos is really old...

This commit is contained in:
m3tam3re 2025-02-20 06:20:47 +01:00
parent 1f646a3bdd
commit b364a0ff16

View File

@ -10,7 +10,7 @@ if ! command -v nix &> /dev/null; then
fi
# Check if we need to enter a new shell
if [[ ! -v INSIDE_NIX_SHELL ]]; then
if [ -z "${INSIDE_NIX_SHELL+x}" ]; then
export NIX_CONFIG="experimental-features = nix-command flakes"
export INSIDE_NIX_SHELL=1
exec nix shell nixpkgs#git nixpkgs#mkpasswd --command bash "$0"
@ -270,8 +270,13 @@ EOF
echo "📦 Setting up environment files..."
# Update environment files with domains
sed -i "s/N8N_DOMAIN/$N8N_DOMAIN/g" ./env/n8n.env
sed -i "s/BASEROW_DOMAIN/$BASEROW_DOMAIN/g" ./env/baserow.env
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' "s/N8N_DOMAIN/$N8N_DOMAIN/g" ./env/n8n.env
sed -i '' "s/BASEROW_DOMAIN/$BASEROW_DOMAIN/g" ./env/baserow.env
else
sed -i "s/N8N_DOMAIN/$N8N_DOMAIN/g" ./env/n8n.env
sed -i "s/BASEROW_DOMAIN/$BASEROW_DOMAIN/g" ./env/baserow.env
fi
echo
echo "⚠️ Important: By proceeding the existing virtual machine will be overwritten!"