https://dagster.io/ logo
#dagster-plus
Title
# dagster-plus
g

Gert Jan

02/22/2024, 8:58 PM
Hello! I'm trying to install Git, by the dagster_cloud_pre_install.sh. But it doesn't seem to run. It is included on the root of the directory (see image). It is also difficult to see if this runs. Any idea what is going wrong?
Copy code
#!/bin/bash

# Ensure the script is running as root
if [ "$(id -u)" -ne 0 ]; then
   echo "This script must be run as root" 1>&2
   exit 1
fi

# Update package lists to get information on the newest versions of packages and their dependencies
apt-get update -y

# Install git
apt-get install git -y

# Verify the installation and print the installed version
if command -v git >/dev/null 2>&1; then
    echo "Git has been successfully installed."
    git --version
else
    echo "Git installation failed." >&2
    exit 1
fi
BTW, I'm using the dagster cli to deploy this.
7 Views