2 Replies
I haven't done it but should absolutely be possible -- you can deploy using the script via Screenconnect and Mosyle as an example.
Intune didn't like the script gorelo generated.
Still waiting for intune to report back if it was successful or not with the GPT script below.
#!/bin/bash
# Set API URL and License Key
api_url="https://gorelo-rmm.azurewebsites.net/api/rmm/device/registration/limit"
license_key="<INSERT LICENSE KEY>"
# Prepare JSON body
json_body=$(cat <<EOF
{
"LicenseKey": "$license_key"
}
EOF
)
# Send POST request
response=$(curl -s -X POST -H "Content-Type: application/json" -d "$json_body" "$api_url")
# Parse response using jq if available, fallback to sed
if command -v jq >/dev/null 2>&1; then
isSuccess=$(echo "$response" | jq -r '.isSuccess')
errorMessage=$(echo "$response" | jq -r '.errorMessage')
else
isSuccess=$(echo "$response" | sed -n 's/.*"isSuccess":\([^,}]*\).*/\1/p' | tr -d '"')
errorMessage=$(echo "$response" | sed -n 's/.*"errorMessage":"\([^"]*\)".*/\1/p')
fi
# Proceed if successful
if [ "$isSuccess" = "true" ]; then
INSTALL_DIR="/Library/Gorelo"
SETUP_DIR="$INSTALL_DIR/Setup"
DOWNLOADED_FILE_PATH="$SETUP_DIR/GoreloSetupMacOs.zip"
# Determine architecture
DownloadedFile="GoreloSetupMacOs_x86_64.zip"
if [ "$(uname -m)" = "arm64" ]; then
DownloadedFile="GoreloSetupMacOs_arm64.zip"
fi
# Setup installation
sudo rm -rf "$INSTALL_DIR"
sudo mkdir -p "$SETUP_DIR"
sudo curl -o "$DOWNLOADED_FILE_PATH" -H "Keep-Alive: true" "https://gorelo.blob.core.windows.net/msi-installer/macos/$DownloadedFile"
sudo unzip -o "$DOWNLOADED_FILE_PATH" -d "$SETUP_DIR"
sudo defaults write com.gorelo.app tLK -string "$license_key"
sudo "$SETUP_DIR/Gorelo.RMM.Setup/Gorelo.RMM.Setup"
else
echo "Error: $errorMessage"
fi
#!/bin/bash
# Set API URL and License Key
api_url="https://gorelo-rmm.azurewebsites.net/api/rmm/device/registration/limit"
license_key="<INSERT LICENSE KEY>"
# Prepare JSON body
json_body=$(cat <<EOF
{
"LicenseKey": "$license_key"
}
EOF
)
# Send POST request
response=$(curl -s -X POST -H "Content-Type: application/json" -d "$json_body" "$api_url")
# Parse response using jq if available, fallback to sed
if command -v jq >/dev/null 2>&1; then
isSuccess=$(echo "$response" | jq -r '.isSuccess')
errorMessage=$(echo "$response" | jq -r '.errorMessage')
else
isSuccess=$(echo "$response" | sed -n 's/.*"isSuccess":\([^,}]*\).*/\1/p' | tr -d '"')
errorMessage=$(echo "$response" | sed -n 's/.*"errorMessage":"\([^"]*\)".*/\1/p')
fi
# Proceed if successful
if [ "$isSuccess" = "true" ]; then
INSTALL_DIR="/Library/Gorelo"
SETUP_DIR="$INSTALL_DIR/Setup"
DOWNLOADED_FILE_PATH="$SETUP_DIR/GoreloSetupMacOs.zip"
# Determine architecture
DownloadedFile="GoreloSetupMacOs_x86_64.zip"
if [ "$(uname -m)" = "arm64" ]; then
DownloadedFile="GoreloSetupMacOs_arm64.zip"
fi
# Setup installation
sudo rm -rf "$INSTALL_DIR"
sudo mkdir -p "$SETUP_DIR"
sudo curl -o "$DOWNLOADED_FILE_PATH" -H "Keep-Alive: true" "https://gorelo.blob.core.windows.net/msi-installer/macos/$DownloadedFile"
sudo unzip -o "$DOWNLOADED_FILE_PATH" -d "$SETUP_DIR"
sudo defaults write com.gorelo.app tLK -string "$license_key"
sudo "$SETUP_DIR/Gorelo.RMM.Setup/Gorelo.RMM.Setup"
else
echo "Error: $errorMessage"
fi