Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

No changes between revisions

Ignore whitespace Rev 1393 → Rev 1394

/tags/v5.9-van-tieghem/livraison/livraison.sh
New file
0,0 → 1,29
#!/bin/bash
##############################################################################################################
# But : Script permettant d'initialiser en une seule commande l'ensemble de la base de données eFlore.
# Auteur : Jean-Pascal Milcent <jpm@tela-botanica.org> (translate bat file to shell script)
# License : GPL v3
# Création : 07 decembre 2011
# Version: 0.1
# 2011-12-07 - Création
# $Id$
##############################################################################################################
 
 
# compresser les fichiers en excluant les fichiers svn et les fichiers de config et framework
tar cvzf consultation.tar.gz ../ \
--exclude="livraison" \
--exclude=".svn" \
--exclude="configurations/config.ini" \
--exclude="configurations/config_papyrus.ini" \
--exclude="framework.php" \
--exclude="*.sh" \
--exclude=".settings" \
--exclude=".buildpath" \
--exclude=".project"
# envoyer sur tela
scp consultation.tar.gz root@tela-botanica.org:/home/telabotap/www/eflore-test/.
 
# se connecter sur tela botanica en ssh et effectuer le déploiement
ssh root@tela-botanica.org "cd /home/telabotap/www/eflore-test/; cd consultation; tar cvzf ../backup/consultation.tar.gz .; cd ../; rm -Rf consultation; mkdir consultation; cd consultation/; tar xvzf ../consultation.tar.gz; cp ../configurations/consultation/* . -R; cp ../configurations/consultation/.htaccess . ; chown telabotap:users /home/telabotap/www/eflore-test/consultation -R; chmod 755 /home/telabotap/www/eflore-test/consultation -R; exit";
echo "Done !"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
Added: svn:executable
+*
\ No newline at end of property
/tags/v5.9-van-tieghem/livraison/.
New file
Property changes:
Added: svn:ignore
+consultation.tar.gz