Skip to content

Instantly share code, notes, and snippets.

@purplefish32
Created August 26, 2013 12:12
Show Gist options
  • Save purplefish32/6340806 to your computer and use it in GitHub Desktop.
Save purplefish32/6340806 to your computer and use it in GitHub Desktop.
Install claroline
#!/bin/bash
CYAN = "\e[46m"
NORMAL = "\e[0m"
PS3 = "Installation Claroline. Cela va supprimer votre répertoire Claroline/. Êtes-vous sûr de vouloir continuer ?"
LISTE=("[y] yes" "[n] no")
select CHOIX in "${LISTE[@]}" ; do
case $REPLY in
1|y)
echo -e "$CYAN###### INSTALLATION COMPOSER $NORMAL "
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
echo -e "$CYAN###### SUPPRESSION REPERTOIRE CLARO $NORMAL "
rm -rf Claroline
echo -e "$CYAN###### CLONE DE CLAROLINE $NORMAL "
git clone --recursive https://github.com/claroline/Claroline.git
cd Claroline
echo -e "$CYAN###### CREATION LOGS/ $NORMAL "
mkdir logs
touch logs/access.log
touch logs/error.log
echo -e "$CYAN###### CHECKOUT MASTER DES PLUGINS $NORMAL "
git submodule foreach git checkout master
echo -e "$CYAN###### RAW INSTALL $NORMAL "
php app/dev/raw_install
echo -e "$CYAN###### ACL $NORMAL "
sudo setfacl -R -m u:www-data:rwX -m u:donovan:rwX app/cache app/logs .git vendor app/config/local files templates test
sudo setfacl -dR -m u:www-data:rwX -m u:donovan:rwX app/cache app/logs .git vendor app/config/local files templates test
echo -e "$CYAN###### AJOUT PathBundle $NORMAL "
git submodule add https://github.com/InnovaLangues/PathBundle.git src/plugin/Innova/PathBundle
echo -e "$CYAN###### INSTALLATION PathBundle $NORMAL "
php app/console claroline:plugin:install Innova PathBundle
echo -e "$CYAN###### VIDAGE DU CACHE $NORMAL "
php app/console cache:clear
php app/console cache:clear --env=prod --no-debug
break
;;
2|n)
echo "Coward !"
break
;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment