mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-27 19:36:29 +00:00
fix: install.sh was calling systemctl on Darwin (#260)
This commit is contained in:
+6
-4
@@ -5,11 +5,13 @@ cd "$(dirname "$0")" # cd to the directory of this script
|
||||
install_or_update_unix() {
|
||||
if systemctl is-active --quiet backrest; then
|
||||
sudo systemctl stop backrest
|
||||
echo "Updating backrest in /usr/local/bin"
|
||||
else
|
||||
echo "Installing backrest to /usr/local/bin"
|
||||
echo "Paused backrest for update"
|
||||
fi
|
||||
|
||||
install_unix
|
||||
}
|
||||
|
||||
install_unix() {
|
||||
echo "Installing backrest to /usr/local/bin"
|
||||
sudo mkdir -p /usr/local/bin
|
||||
|
||||
sudo cp $(ls -1 backrest | head -n 1) /usr/local/bin
|
||||
|
||||
Reference in New Issue
Block a user