diff --git a/readme.md b/readme.md index 75d85e6..8402495 100644 --- a/readme.md +++ b/readme.md @@ -21,9 +21,11 @@ You must set environment variables: ```sh # Set variables you need -SMSC_EXPORTER_VERSION=v0.1.2-alpha +SMSC_EXPORTER_VERSION=v0.1.3-alpha SMSC_EXPORTER_PLATFORM=linux SMSC_EXPORTER_ARCH=amd64 +SMSC_LOGIN= +SMSC_PASSWORD= # Download release wget https://github.com/xxxcoltxxx/smsc-balance-exporter/releases/download/${SMSC_EXPORTER_VERSION}/smsc_balance_exporter_${SMSC_EXPORTER_VERSION}_${SMSC_EXPORTER_PLATFORM}_${SMSC_EXPORTER_ARCH}.tar.gz @@ -31,16 +33,15 @@ tar xvzf smsc_balance_exporter_${SMSC_EXPORTER_VERSION}_${SMSC_EXPORTER_PLATFORM mv ./smsc_balance_exporter_${SMSC_EXPORTER_VERSION}_${SMSC_EXPORTER_PLATFORM}_${SMSC_EXPORTER_ARCH} /usr/local/bin/smsc_balance_exporter # Add service to systemctl -cat <> /etc/systemd/system/smsc_balance_exporter.service +cat < /etc/systemd/system/smsc_balance_exporter.service [Unit] Description=Smsc Balance Exporter Wants=network-online.target After=network-online.target [Service] -Environment="SMSC_LOGIN= SMSC_PASSWORD=" -User=balance_exporter -Group=balance_exporter +Environment="SMSC_LOGIN=${SMSC_LOGIN}" +Environment="SMSC_PASSWORD=${SMSC_PASSWORD}" Type=simple ExecStart=/usr/local/bin/smsc_balance_exporter