build/drupal/installDrupal.sh
author ymh <ymh.work@gmail.com>
Thu, 23 Feb 2017 18:59:04 +0100
changeset 525 c06db7aa1b10
parent 491 e9e436a588b2
child 541 e756a8c72c3d
permissions -rwxr-xr-x
Added tag 0.0.17 for changeset 85e8382852e7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
428
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
#!/bin/sh
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
#
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
clear
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
TARFILE=sources.tar.gz
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
DUMP=corpusdelaparole.sql     
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
APUSER=apache                                                                                                                             
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
APGROUP=apache                                                                                                                             
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
# Variables de configuration à modifier selon vos besoins
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
#########################################################                                                                                                                  
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
ROOT=/var/www/corpusdelaparole/drupal
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
DBNAME=corpusdelaparole
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
DBUSER=corpus
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
DBPASS=aeTh3ohC
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
DBSERV=127.0.0.1
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
PHP=/opt/remi/php56/root/usr/bin/php
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
#########################################################
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
splashTitle() {
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
cat <<"EOT"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
                __ _   _____                         _    _____      _                                       
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
               / _(_) |  __ \                       | |  / ____|    | |                                      
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
          __ _| |_ _  | |  | |_ __ _   _ _ __   __ _| | | (___   ___| |_ _   _ _ __                          
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
         / _` |  _| | | |  | | '__| | | | '_ \ / _` | |  \___ \ / _ \ __| | | | '_ \                         
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
        | (_| | | | | | |__| | |  | |_| | |_) | (_| | |  ____) |  __/ |_| |_| | |_) |                        
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
         \__, |_| |_| |_____/|_|   \__,_| .__/ \__,_|_| |_____/ \___|\__|\__,_| .__/                         
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
          __/ |                         | |                                   | |                            
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
         |___/                          |_|                                   |_|                            
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
                                                                                                             
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
EOT
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
}
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
splashTitle
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
echo "--------------------------- PARAMETRES D'INSTALLATION -------------------------------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
echo "-------------------------------------------------------------------------------------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
echo "Dossier d'installation    = $ROOT"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
echo "chemin php                = $PHP"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
echo "Nom de la base de données = $DBNAME"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
echo "User Mysql                = $DBUSER"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
echo "Mot de passe Mysql        = $DBPASS"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
echo "Serveur Mysql             = $DBSERV"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
echo "-------------------------------------------------------------------------------------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
echo "-------------------------------------------------------------------------------------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
read -r -p "Etes-vous sur(e) de vouloir installer avec les paramètres ci dessus ? [Oui/n]" response
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
 response=${response,,} # tolower
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
 if [[ $response =~ ^(oui|o| ) ]]; then 	
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
	#
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    48
	echo "-------------------- Installation du site corpus de la parole -----------------------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
	echo "-------------------------------------------------------------------------------------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
	#                                                                                                                                                     
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
	# Errors are fatal
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
	#                                                                                                                                                     
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
	set -e
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
	echo "Copie des sources et du dump SQL dans $ROOT"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
	echo "-------------------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
	echo "cp $TARFILE $ROOT/$TARFILE"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
	cp $TARFILE $ROOT/$TARFILE
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
	echo "cp $DUMP $ROOT/$TARFILE"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    61
	cp $DUMP $ROOT/$DUMP
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    62
	echo ">> Copie effectuée avec succès"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
	cd $ROOT
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    66
	echo "Extraction des sources dans $ROOT" 
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
	echo "---------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
	echo "tar -xf $TARFILE"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
	tar -xf $TARFILE
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    70
	echo ">> Extraction effectuée avec succès"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    71
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    72
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    73
	echo "Restauration du dump de bdd dans la base $DBNAME"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    74
	echo "------------------------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    75
	echo "mysql -u $DBUSER -p$DBPASS $DBNAME < $DUMP"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    76
	mysql -h $DBSERV -u $DBUSER -p$DBPASS $DBNAME < $DUMP
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    77
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    78
	echo "Vidage des tables accesslog,search_dataset,search_index,search_total,sessions,watchdog"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    79
	echo "--------------------------------------------------------------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    80
	mysql -h $DBSERV -u $DBUSER -D $DBNAME -p$DBPASS -e "TRUNCATE TABLE accesslog"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    81
	mysql -h $DBSERV -u $DBUSER -D $DBNAME -p$DBPASS -e "TRUNCATE TABLE search_dataset"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    82
	mysql -h $DBSERV -u $DBUSER -D $DBNAME -p$DBPASS -e "TRUNCATE TABLE search_index"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    83
	mysql -h $DBSERV -u $DBUSER -D $DBNAME -p$DBPASS -e "TRUNCATE TABLE search_total"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    84
	mysql -h $DBSERV -u $DBUSER -D $DBNAME -p$DBPASS -e "TRUNCATE TABLE sessions"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    85
	mysql -h $DBSERV -u $DBUSER -D $DBNAME -p$DBPASS -e "TRUNCATE TABLE watchdog"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    86
	echo ">> Restauration effectuée avec succès"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    87
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    88
	echo "Suppression de l'archive tar et du dump"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    89
	echo "-----------------------------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    90
	rm $TARFILE
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    91
	rm $DUMP
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    92
	echo ">> Suppression effectuée avec succès"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    93
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    94
	echo "Attribution des droits apache (httpd) sur les sources"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    95
	echo "-----------------------------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    96
	echo "chown –R $APUSER:$APGROUP $ROOT/*"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    97
	chown $APUSER:$APGROUP -R $ROOT/*
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    98
	echo ">> Droits apache attribués avec succès"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
    99
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   100
        echo "Mise à jour du fichier de configuation de drupal"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   101
        echo "-----------------------------------------------------"
491
e9e436a588b2 Install corrections
ymh <ymh.work@gmail.com>
parents: 428
diff changeset
   102
        echo "sed -r \"... database => $DBNAME \" sites/default/settings.php"
e9e436a588b2 Install corrections
ymh <ymh.work@gmail.com>
parents: 428
diff changeset
   103
        sed -r -i "s/^(\s+[\'\"]database[\'\"]\s*\=>\s*)([\'\"]).+[\'\"](.*)$/\1\2$DBNAME\2\3/" sites/default/settings.php
e9e436a588b2 Install corrections
ymh <ymh.work@gmail.com>
parents: 428
diff changeset
   104
        echo "sed -r \"... username => $DBUSER \" sites/default/settings.php"
e9e436a588b2 Install corrections
ymh <ymh.work@gmail.com>
parents: 428
diff changeset
   105
        sed -r -i "s/^(\s+[\'\"]username[\'\"]\s*\=>\s*)([\'\"]).+[\'\"](.*)$/\1\2$DBUSER\2\3/" sites/default/settings.php
e9e436a588b2 Install corrections
ymh <ymh.work@gmail.com>
parents: 428
diff changeset
   106
        echo "sed -r \"... password => $DBPASS \" sites/default/settings.php"
e9e436a588b2 Install corrections
ymh <ymh.work@gmail.com>
parents: 428
diff changeset
   107
        sed -r -i "s/^(\s+[\'\"]password[\'\"]\s*\=>\s*)([\'\"]).+[\'\"](.*)$/\1\2$DBPASS\2\3/" sites/default/settings.php
e9e436a588b2 Install corrections
ymh <ymh.work@gmail.com>
parents: 428
diff changeset
   108
        echo "sed -r \"... host => $DBSERV \" sites/default/settings.php"
e9e436a588b2 Install corrections
ymh <ymh.work@gmail.com>
parents: 428
diff changeset
   109
        sed -r -i "s/^(\s+[\'\"]host[\'\"]\s*\=>\s*)([\'\"]).+[\'\"](.*)$/\1\2$DBSERV\2\3/" sites/default/settings.php
428
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   110
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   111
	echo "Vidage des caches Drupal"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   112
	echo "-----------------------------------------------------"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   113
	export DRUSH_OPTIONS="-q"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   114
	sudo -u $APUSER DRUSH_PHP="$PHP" /usr/local/bin/drush cc all
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   115
	set -e
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   116
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   117
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   118
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   119
	echo ">>>>>>>>>>>>>> INSTALLATION EFFECTUEE AVEC SUCCESS"
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   120
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   121
	echo ""
76a47f714766 add memcached configuration option, small corrections for the build process and add installDrupal.sh file to the release
ymh <ymh.work@gmail.com>
parents:
diff changeset
   122
 fi