From fa4d8a8f60a7495618584f425b2c9d9fdf62b664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20R?= Date: Tue, 1 Oct 2019 17:16:37 +0200 Subject: [PATCH] [Platform.sh] Change to call to fix execution bit issues with cache script (#465) --- .platform.app.yaml | 2 +- bin/platformsh/pre_start-per_node-clear_cache.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 bin/platformsh/pre_start-per_node-clear_cache.sh diff --git a/.platform.app.yaml b/.platform.app.yaml index d9f8be0088..269aeef366 100644 --- a/.platform.app.yaml +++ b/.platform.app.yaml @@ -140,7 +140,7 @@ hooks: # Now that mounts are available, clear cache on mount. # Note: Skip on PE Cluster setup using e.g. "if [$PLATFORM_BRANCH" != 'production']; then" & get p.sh to enable this on internal per node "pre_start" hook - ./bin/platformsh/pre_start-per_node-clear_cache.sh + sh bin/platformsh/pre_start-per_node-clear_cache.sh # If you also need to clear Redis cache on every deploy, you can either use this command or redis-cli # Normally this should only be needed if cached data structures changes (upgrades), or you change data via sql (e.g. restore backup) diff --git a/bin/platformsh/pre_start-per_node-clear_cache.sh b/bin/platformsh/pre_start-per_node-clear_cache.sh old mode 100644 new mode 100755 index ed7bcbacb1..716cd48080 --- a/bin/platformsh/pre_start-per_node-clear_cache.sh +++ b/bin/platformsh/pre_start-per_node-clear_cache.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env sh # This script is run as part of the .platform.app.yaml deployment step # On PE Cluster (usually just production) this should be setup by platform.sh team as part of pre_start event