revert borgwrapper install dir to /usr/local/bin
parent
00ae316874
commit
7a597c30cc
6
install
6
install
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
cp -i ./src/borgwrapper /usr/bin/borgwrapper
|
cp -i ./src/borgwrapper /usr/local/bin/borgwrapper
|
||||||
chown root. /usr/bin/borgwrapper
|
chown root. /usr/local/bin/borgwrapper
|
||||||
chmod 750 /usr/bin/borgwrapper
|
chmod 750 /usr/local/bin/borgwrapper
|
||||||
|
|
||||||
if [ ! -d /etc/borgwrapper/ ]; then
|
if [ ! -d /etc/borgwrapper/ ]; then
|
||||||
mkdir /etc/borgwrapper
|
mkdir /etc/borgwrapper
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/borgwrapper -c /etc/borgwrapper/%i backup
|
ExecStart=/usr/local/bin/borgwrapper -c /etc/borgwrapper/%i backup
|
||||||
Nice=10
|
Nice=10
|
||||||
User=root
|
User=root
|
||||||
Group=root
|
Group=root
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ After=network.target borgwrapper-backup@%i.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/borgwrapper -c /etc/borgwrapper/%i verify
|
ExecStart=/usr/local/bin/borgwrapper -c /etc/borgwrapper/%i verify
|
||||||
Nice=10
|
Nice=10
|
||||||
User=root
|
User=root
|
||||||
Group=root
|
Group=root
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue