From 106914e14e433f6f98fa996b34685423f074a039 Mon Sep 17 00:00:00 2001 From: Rounak Shrestha <66557682+Rounak-stha@users.noreply.github.com> Date: Tue, 10 Sep 2024 17:43:18 +0545 Subject: [PATCH 1/2] fix: Local Setup on Windows (#5539) --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..526c8a38d --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.sh text eol=lf \ No newline at end of file From 1d6ebb7c41882fe729fc06d7c774879e74bf8c54 Mon Sep 17 00:00:00 2001 From: Akshat Jain Date: Tue, 10 Sep 2024 17:29:16 +0530 Subject: [PATCH 2/2] add the SERVICE_FOLDER value to install.sh script dynamically (#5553) --- deploy/selfhost/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/selfhost/install.sh b/deploy/selfhost/install.sh index 6ad3b077f..08cd4d916 100755 --- a/deploy/selfhost/install.sh +++ b/deploy/selfhost/install.sh @@ -442,10 +442,10 @@ function backupData() { local BACKUP_FOLDER=$PLANE_INSTALL_DIR/backup/$datetime mkdir -p "$BACKUP_FOLDER" - volumes=$(docker volume ls -f "name=plane-app" --format "{{.Name}}" | grep -E "_pgdata|_redisdata|_uploads") + volumes=$(docker volume ls -f "name=$SERVICE_FOLDER" --format "{{.Name}}" | grep -E "_pgdata|_redisdata|_uploads") # Check if there are any matching volumes if [ -z "$volumes" ]; then - echo "No volumes found starting with 'plane-app'" + echo "No volumes found starting with '$SERVICE_FOLDER'" exit 1 fi