fix: [bash] Alias functions need a function and not a string...

pull/5913/head
Steve Clement 2020-05-17 01:49:13 +09:00
parent cc943323c2
commit 89dbb590a6
No known key found for this signature in database
GPG Key ID: 69A20F509BE4AEE9
1 changed files with 9 additions and 9 deletions

View File

@ -838,21 +838,21 @@ gitPullAllRCLOCAL () {
sudo sed -i -e '$i \done\n' /etc/rc.local
}
# Composer on php 7.0 does not need any special treatment the provided phar works well
alias composer70='composer'
# Composer on php 7.2 does not need any special treatment the provided phar works well
alias composer72='composer'
# Composer on php 7.3 does not need any special treatment the provided phar works well
alias composer73='composer'
# Main composer function
composer () {
sudo mkdir /var/www/.composer ; sudo chown ${WWW_USER}:${WWW_USER} /var/www/.composer
${SUDO_WWW} sh -c 'cd ${PATH_TO_MISP}/app ; php composer.phar install'
}
# Composer on php 7.0 does not need any special treatment the provided phar works well
alias composer70=composer
# Composer on php 7.2 does not need any special treatment the provided phar works well
alias composer72=composer
# Composer on php 7.3 does not need any special treatment the provided phar works well
alias composer73=composer
# TODO: this is probably a useless function
# Enable various core services
enableServices () {