Files
nextcloud_ics_sync/pagerduty-schedule.sh
T

11 lines
375 B
Bash
Executable File

#!/bin/bash
#install required packages
apk add curl wget
destination_folder="/storage"
pagerduty_webcal_url="https://prometheusgroup.pagerduty.com/private/ec39afcfcc8fad708b335db797b2c1f4324f7f7097b3c1b65c3c0cea08388915/feed/PLHRBFV"
today_date=$(date "+%Y-%m-%d")
curl -s -A "$USER_AGENT" -o "$destination_folder/pagerduty_export_$today_date.ics" "$pagerduty_webcal_url"