Skip to content
This repository was archived by the owner on Feb 5, 2018. It is now read-only.

Commit 75fed38

Browse files
committed
Empty platform cache so a new token will be used
1 parent f2fb2d2 commit 75fed38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

etc/my_init.d/100-platformsh-setup-token

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22

33
TOKEN_FILE=$(mktemp -p /opt)
44
echo "${PLATFORMSH_API_TOKEN}" > "${TOKEN_FILE}"
5+
6+
# Empty platform cache so a new token will be used.
7+
rm -rf /root/.platformsh/cache
8+
59
/usr/bin/ruby /opt/yamledit.rb -f /root/.platformsh/config.yaml -n -k api,token_file -v "${TOKEN_FILE}" --force

0 commit comments

Comments
 (0)