Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Александр authored and Александр committed Dec 5, 2018
1 parent 19776f7 commit 96ee3f3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,27 @@ 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=<your_login>
SMSC_PASSWORD=<your_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
tar xvzf smsc_balance_exporter_${SMSC_EXPORTER_VERSION}_${SMSC_EXPORTER_PLATFORM}_${SMSC_EXPORTER_ARCH}.tar.gz
mv ./smsc_balance_exporter_${SMSC_EXPORTER_VERSION}_${SMSC_EXPORTER_PLATFORM}_${SMSC_EXPORTER_ARCH} /usr/local/bin/smsc_balance_exporter

# Add service to systemctl
cat <<EOF >> /etc/systemd/system/smsc_balance_exporter.service
cat <<EOF > /etc/systemd/system/smsc_balance_exporter.service
[Unit]
Description=Smsc Balance Exporter
Wants=network-online.target
After=network-online.target
[Service]
Environment="SMSC_LOGIN=<your_login> SMSC_PASSWORD=<your_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
Expand Down

0 comments on commit 96ee3f3

Please sign in to comment.