From fee3008f5a11db1cbc0df031c806dc1f34d04482 Mon Sep 17 00:00:00 2001 From: Magicalex Date: Wed, 26 Dec 2018 19:39:38 +0100 Subject: [PATCH] fix(): error in if --- rootfs/usr/local/bin/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/usr/local/bin/run.sh b/rootfs/usr/local/bin/run.sh index 077c75f..0e62f83 100644 --- a/rootfs/usr/local/bin/run.sh +++ b/rootfs/usr/local/bin/run.sh @@ -39,11 +39,11 @@ fi cd /flarum/app # add token authentication (eg. for privates extensions) -if [ -f '/flarum/app/extensions/composer.repositories.txt' ]; then +if [ -f '/flarum/app/extensions/auth.token.txt' ]; then while read line; do site=$(echo $line | cut -d '|' -f1) token=$(echo $line | cut -d '|' -f2) - if [$site = 'github']; then + if [ $site = "github" ]; then echo "[INFO] Adding ${site} token authentication" su-exec $UID:$GID composer config github-oauth.github.com $token fi