mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-25 02:16:38 +00:00
fix: default BACKREST_PORT to 127.0.0.1:9898 (localhost only) when using install.sh
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user