From 936822d7779c5b9a13f48401856b19678e70382a Mon Sep 17 00:00:00 2001 From: Steven Foerster Date: Wed, 5 Aug 2020 16:41:25 -0400 Subject: [PATCH] pass environment during installation --- README.md | 6 +++--- scripts/subinstallers/docker.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 50ffc3d..adeb7ce 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ Recommended System Specifications: Starting from base installation ``` git clone https://gitlab.com/cyber5k/mistborn.git -sudo bash ./mistborn/scripts/install.sh +sudo -E bash ./mistborn/scripts/install.sh ``` Get default admin Wireguard profile @@ -123,7 +123,7 @@ Mistborn is regularly tested on Ubuntu 18.04 LTS (DigitalOcean droplet with 2 GB Clone the git repository and run the install script: ``` git clone https://gitlab.com/cyber5k/mistborn.git -sudo bash ./mistborn/scripts/install.sh +sudo -E bash ./mistborn/scripts/install.sh ``` Running `install.sh` will do the following: @@ -157,7 +157,7 @@ See the environment variables needed in `./scripts/noninteractive/.install_bareb This will perform a noninteractive install with the default environment variables set in `.install_barebones`. ``` git clone https://gitlab.com/cyber5k/mistborn.git -sudo bash -c "source ./mistborn/scripts/noninteractive/.install_barebones && ./mistborn/scripts/install.sh" +sudo -E bash -c "source ./mistborn/scripts/noninteractive/.install_barebones && ./mistborn/scripts/install.sh" ``` # Post-Installation diff --git a/scripts/subinstallers/docker.sh b/scripts/subinstallers/docker.sh index a051604..a4206ab 100755 --- a/scripts/subinstallers/docker.sh +++ b/scripts/subinstallers/docker.sh @@ -16,5 +16,5 @@ fi # set docker-compose path used in Mistborn if [ ! -f /usr/local/bin/docker-compose ]; then - sudo ln -s $(which docker-compose) /usr/local/bin/docker-compose + sudo -E ln -s $(which docker-compose) /usr/local/bin/docker-compose fi