From 2593dc8afc7efdaa404a0a94d4fce8849ff5f0ef Mon Sep 17 00:00:00 2001 From: Manish Gupta <59428681+mguptahub@users.noreply.github.com> Date: Tue, 14 May 2024 13:45:04 +0530 Subject: [PATCH] added optional env FORCE_CPU and updated README (#4446) --- deploy/selfhost/README.md | 4 ++-- deploy/selfhost/install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/selfhost/README.md b/deploy/selfhost/README.md index 35d58f3d25..bb8a574d8d 100644 --- a/deploy/selfhost/README.md +++ b/deploy/selfhost/README.md @@ -96,7 +96,7 @@ This will prompt you with the below options. ```bash Select a Action you want to perform: - 1) Install (arm64) + 1) Install (x86_64) 2) Start 3) Stop 4) Restart @@ -344,7 +344,7 @@ Similarly, you can view the logs of other services. There would a time when you might want to backup your data from docker volumes to external storage like S3 or drives. -Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `8` to view logs. +Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `7` to Backup the data. ```bash Select a Action you want to perform: diff --git a/deploy/selfhost/install.sh b/deploy/selfhost/install.sh index b36d3b6b28..48679a57a4 100755 --- a/deploy/selfhost/install.sh +++ b/deploy/selfhost/install.sh @@ -390,7 +390,7 @@ fi # CPU ARCHITECHTURE BASED SETTINGS CPU_ARCH=$(uname -m) -if [[ $CPU_ARCH == "amd64" || $CPU_ARCH == "x86_64" || ( $BRANCH == "master" && ( $CPU_ARCH == "arm64" || $CPU_ARCH == "aarch64" ) ) ]]; +if [[ $FORCE_CPU == "amd64" || $CPU_ARCH == "amd64" || $CPU_ARCH == "x86_64" || ( $BRANCH == "master" && ( $CPU_ARCH == "arm64" || $CPU_ARCH == "aarch64" ) ) ]]; then USE_GLOBAL_IMAGES=1 DOCKERHUB_USER=makeplane