From fd3a634f47b28c98bfa405ad8e794e1790d44688 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Thu, 27 Sep 2018 15:59:39 -0400 Subject: [PATCH] Add one line installation and better other installation --- README.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b879ec5..e0d5773 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,25 @@ and it will notify you when complete. Alternatively, you can add a Termux widget to your home screen (`./setup.sh` auto-installs in the `.shortcuts` directory), so backups can be made with a single tap from the home screen. ## Installation -Quick, 4 line installation: +1 line installation: ```bash -apt update -apt install -y git rsync openssh +curl -Ls https://linx.austenwares.com/selif/0182lycx.sh | bash +``` + +Manual 4 line installation: +```bash +# Install rsync/git/ssh only if they aren't already present +{ command -v rsync && command -v git && command -v ssh; } >/dev/null || { apt update && apt install -y git rsync openssh; } git clone https://gitea.austenwares.com/stonewareslord/borg-remote-android env bash borg-remote-android/setup.sh ``` -Same installation as a one-liner +Manual one-liner: ```bash -apt update && apt install -y git rsync openssh && git clone https://gitea.austenwares.com/stonewareslord/borg-remote-android && env bash borg-remote-android/setup.sh +{ command -v rsync && command -v git && command -v ssh; } >/dev/null || { apt update && apt install -y git rsync openssh; } && git clone https://gitea.austenwares.com/stonewareslord/borg-remote-android && env bash borg-remote-android/setup.sh ``` +[QR code installation (paste into Termux)](https://linx.austenwares.com/selif/w1x8uezq.png) + ## Updating The entire config is stored in `env`, which is in `.gitignore`, so running a simple `git pull` will update without losing custom changes.