cd redmine/plugins && git clone https://github.com/olemskoi/redmine_status_notifier.git
#!/bin/sh # : # : new / done ACTION="$1" # ISSUE_ID="$2" # PROJECT="$3" # SUBJECT="$4" # sms- smsc.ru SMSC_LOGIN="mylogin" SMSC_PASSWORD="mypassword" # , SMSC_NOTIFYTELS="89167777777,89151111111" case "$ACTION" in active) # STATUS="new" ;; done) # STATUS="done" ;; *) echo "please define action" exit 1 ;; esac # sms-. : "new myproject #111: " SMSC_MESSAGE="$STATUS $PROJECT #$ISSUE_ID: $SUBJECT" # API smsc, curl LC_ALL=ru_RU.UTF-8 /usr/bin/curl --silent --show-error "https://smsc.ru/sys/send.php?charset=utf-8&login=$SMSC_LOGIN&psw=$SMSC_PASSWORD&phones=$SMSC_NOTIFYTELS&mes=$SMSC_MESSAGE" > /dev/null 2>&1
Source: https://habr.com/ru/post/160457/
All Articles