fix: default BACKREST_PORT to 127.0.0.1:9898 (localhost only) when using install.sh

This commit is contained in:
garethgeorge
2024-04-08 00:44:26 -07:00
parent acc081a293
commit eb07230cc0
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -158,6 +158,7 @@ Type=simple
User=<your linux user>
Group=<your linux group>
ExecStart=/usr/local/bin/backrest
Environment="BACKREST_PORT=127.0.0.1:9898"
[Install]
WantedBy=multi-user.target
+3
View File
@@ -27,6 +27,7 @@ Type=simple
User=$(whoami)
Group=$(whoami)
ExecStart=/usr/local/bin/backrest
Environment="BACKREST_PORT=127.0.0.1:9898"
[Install]
WantedBy=multi-user.target
@@ -60,6 +61,8 @@ create_launchd_plist() {
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
<key>BACKREST_PORT</key>
<string>127.0.0.1:9898</string>
</dict>
</dict>
</plist>