π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
fixed setup.sh for macos support (#5336)
Manish Guptab05d72e29af3
diff --git a/deploy/selfhost/install.sh b/deploy/selfhost/install.shindex 8fd2e3e2fa..6ad3b077fb 100755--- a/deploy/selfhost/install.sh+++ b/deploy/selfhost/install.sh@@ -9,11 +9,20 @@ export DOCKERHUB_USER=makeplaneexport PULL_POLICY=${PULL_POLICY:-if_not_present}CPU_ARCH=$(uname -m)+OS_NAME=$(uname)+UPPER_CPU_ARCH=$(tr '[:lower:]' '[:upper:]' <<< "$CPU_ARCH")mkdir -p $PLANE_INSTALL_DIR/archiveDOCKER_FILE_PATH=$PLANE_INSTALL_DIR/docker-compose.yamlDOCKER_ENV_PATH=$PLANE_INSTALL_DIR/plane.env+SED_PREFIX=()+if [ "$OS_NAME" == "Darwin" ]; then+ SED_PREFIX=("-i" "")+else+ SED_PREFIX=("-i")+fi+function print_header() {clear@@ -51,12 +60,12 @@ function spinner() {}function initialize(){- printf "Please wait while we check the availability of Docker images for the selected release ($APP_RELEASE) with ${CPU_ARCH^^} support." >&2+ printf "Please wait while we check the availability of Docker images for the selected release ($APP_RELEASE) with ${UPPER_CPU_ARCH} support." >&2if [ "$CUSTOM_BUILD" == "true" ]; thenecho "" >&2echo "" >&2- echo "${CPU_ARCH^^} images are not available for selected release ($APP_RELEASE)." >&2+ echo "${UPPER_CPU_ARCH} images are not available for selected release ($APP_RELEASE)." >&2echo "build"return 1fi@@ -78,7 +87,7 @@ function initialize(){elseecho "" >&2echo "" >&2- echo "${CPU_ARCH^^} images are not available for selected release ($APP_RELEASE)." >&2+ echo "${UPPER_CPU_ARCH} images are not available for selected release ($APP_RELEASE)." >&2echo "" >&2echo "build"return 1@@ -122,7 +131,7 @@ function updateEnvFile() {returnelse# if key exists, update the value- sed -i "s/^$key=.*/$key=$value/g" "$file"+ sed "${SED_PREFIX[@]}" "s/^$key=.*/$key=$value/g" "$file"fielseecho "File not found: $file"