Fix permissions of file containing password

This commit is contained in:
Clément Michaud 2021-05-17 23:01:10 +02:00
parent f86c927fc3
commit 7732427483

View file

@ -3,7 +3,7 @@ install:
@cp borg_exporter.sh /usr/local/bin/ \
&& chmod +x /usr/local/bin/borg_exporter.sh \
&& cp -n borg_exporter.rc /etc/borg_exporter.rc \
&& chmod 700 /etc/borg_exporter.rc \
&& chmod 400 /etc/borg_exporter.rc \
&& cp prometheus-borg-exporter.timer /etc/systemd/system/ \
&& cp prometheus-borg-exporter.service /etc/systemd/system/ \
&& echo -n "Edit the config file /etc/borg_exporter.rc and press [ENTER] when finished "; read _ \