fix(): error in if

pull/43/head
Magicalex 2018-12-26 19:39:38 +01:00
parent 0afc7db182
commit fee3008f5a
No known key found for this signature in database
GPG Key ID: A89B48B1788C3CB5
1 changed files with 2 additions and 2 deletions

View File

@ -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