Browse Source

Remove install script (#70)

mount-script-check
Mayank Chhabra 4 years ago
committed by GitHub
parent
commit
cf4edd7288
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      README.md
  2. 8
      configure-box.sh
  3. 2
      events/triggers/update
  4. 40
      install-box.sh
  5. 2
      scripts/update/README.md

7
README.md

@ -77,12 +77,7 @@ Ensure that your account is [correctly permissioned to use docker](https://docs.
> It will clone this repo while preserving home directory's existing structure.
```bash
# Ideally you should run this in $HOME as the docker-compose presets are in home
# This will not overwrite any other files but you should segment this in its
# own account
curl "https://raw.githubusercontent.com/getumbrel/umbrel/v0.1.5-beta/install-box.sh" | sh
# OR wget (if this works better)
wget -qO- "https://raw.githubusercontent.com/getumbrel/umbrel/v0.1.5-beta/install-box.sh" | sh
curl -L https://github.com/getumbrel/umbrel/archive/v0.1.5-beta.tar.gz | tar -xz --strip-components=1
```
### Step 2. Configure

8
configure-box.sh

@ -101,5 +101,11 @@ sed -i "s/torpassword=umbrelftw/torpassword=${RPCPASS}/g;" bitcoin/bitcoin.conf
echo "Adding Tor password to LND"
sed -i "s/tor.password=umbrelftw/tor.password=${RPCPASS}/g; " lnd/lnd.conf
rm configure-box.sh
echo "Removing stuff we don't need"
rm -fr .git
rm -fr README.md
rm -fr NETWORKING.md
rm -fr CONTRIBUTING.md
rm -fr LICENSE
rm -fr configure-box.sh
echo "Box Configuration complete"

2
events/triggers/update

@ -45,7 +45,7 @@ EOF
echo "Downloading Umbrel $RELEASE"
mkdir -p "$UMBREL_ROOT"/.umbrel-"$RELEASE"
cd "$UMBREL_ROOT"/.umbrel-"$RELEASE"
wget -qO- "https://raw.githubusercontent.com/getumbrel/umbrel/$RELEASE/install-box.sh" | sh
curl -L "https://github.com/getumbrel/umbrel/archive/$RELEASE.tar.gz" | tar -xz --strip-components=1
# Run update scripts
echo "Running update install scripts of the new release"

40
install-box.sh

@ -1,40 +0,0 @@
#!/bin/bash -e
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# Install the docker-compose box to the current working directory
# Pre-requisites: git
check_dependencies () {
for cmd in "$@"; do
if ! command -v $cmd >/dev/null 2>&1; then
echo "This script requires \"${cmd}\" to be installed"
exit 1
fi
done
}
check_dependencies git
echo "Cloning to current working directory from github..."
git init
git remote add origin https://github.com/getumbrel/umbrel.git
git fetch --all --tags
git checkout tags/v0.1.5-beta
git reset --hard tags/v0.1.5-beta
echo "Removing stuff we don't need"
rm -fr .git
rm -fr README.md
rm -fr NETWORKING.md
rm -fr CONTRIBUTING.md
rm -fr LICENSE
rm -fr install-box.sh
echo "Installing complete"

2
scripts/update/README.md

@ -9,7 +9,7 @@ How over-the-air updates work on Umbrel.
3. Any new developments to the main repository (i.e. this repo) are made, eg. adding a new directory or a new config file.
4. To prepare a new release of Umbrel, called `vX.Y.Z`, a PR is opened that updates the version in both [`README.md`](https://github.com/getumbrel/umbrel/blob/master/README.md) and [`install-box.sh`](https://github.com/getumbrel/umbrel/blob/master/install-box.sh), and updates [`info.json`](https://github.com/getumbrel/umbrel/blob/master/info.json) file to:
4. To prepare a new release of Umbrel, called `vX.Y.Z`, a PR is opened that updates the version in [`README.md`](https://github.com/getumbrel/umbrel/blob/master/README.md) and [`info.json`](https://github.com/getumbrel/umbrel/blob/master/info.json) file to:
```json
{

Loading…
Cancel
Save