Skip to content

Commit

Permalink
Merge pull request #74 from keizer619/master
Browse files Browse the repository at this point in the history
Set permissions for bal inside script
  • Loading branch information
keizer619 authored Jan 25, 2021
2 parents a279132 + 359a20e commit c0ef2a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,17 @@ then
ln -sf /usr/lib/ballerina/bin/bal /usr/bin/bal
echo "export BALLERINA_HOME=/usr/lib/bal" >> /etc/profile.d/wso2.sh
rm -f /usr/lib/ballerina/bin/ballerina
chmod 755 /usr/lib/ballerina/bin/bal
elif [ -f "usr/lib64/ballerina/bin/ballerina" ]
then
ln -sf usr/lib64/ballerina/bin/bal /usr/bin/bal
rm -f usr/lib64/ballerina/bin/ballerina
elif [ -f "/Library/Ballerina/bin/ballerina" ]
chmod 755 usr/lib64/ballerina/bin/bal
elif [ -f "/Library/Ballerina/bin/ballerina" ]
then
echo "/Library/Ballerina/bin" >> target/darwinpkg/etc/paths.d/bal
rm -f /Library/Ballerina/bin/ballerina
chmod 755 /Library/Ballerina/bin/bal
fi

echo "The ‘ballerina’ command was changed to ‘bal’. Please use ‘bal’ command from now onwards."
Expand Down

0 comments on commit c0ef2a2

Please sign in to comment.