mikrotik-exporter/scripts/start.sh
Daniel Ricart 0250e6c58e fixed typo in start.sh permissions assignment (#53)
Found a typo in the `start.sh` file that prevented setting the correct execution permissions.
2019-10-16 12:07:35 -04:00

13 lines
275 B
Bash
Executable File

#!/bin/sh
if [ ! -x /app/mikrotik-exporter ]; then
chmod 755 /app/mikrotik-exporter
fi
if [ -z "$CONFIG_FILE" ]
then
/app/mikrotik-exporter -device $DEVICE -address $ADDRESS -user $USER -password $PASSWORD
else
/app/mikrotik-exporter -config-file $CONFIG_FILE
fi