2018-09-05 17:00:25 +02:00
|
|
|
.PHONY: install
|
|
|
|
install:
|
2018-09-06 10:52:42 +02:00
|
|
|
@cp borg_exporter.sh /usr/local/bin/ \
|
2018-09-05 17:00:25 +02:00
|
|
|
&& chmod +x /usr/local/bin/borg_exporter.sh \
|
2018-09-06 15:40:33 +02:00
|
|
|
&& cp -n borg_exporter.rc /etc/borg_exporter.rc \
|
2018-09-05 17:00:25 +02:00
|
|
|
&& cp prometheus-borg-exporter.timer /etc/systemd/system/ \
|
|
|
|
&& cp prometheus-borg-exporter.service /etc/systemd/system/ \
|
2018-09-06 10:52:42 +02:00
|
|
|
&& echo -n "Edit the config file /etc/borg_exporter.rc and press [ENTER] when finished "; read _ \
|
2018-09-05 17:00:25 +02:00
|
|
|
&& systemctl enable prometheus-borg-exporter.timer \
|
|
|
|
&& systemctl start prometheus-borg-exporter.timer
|