delete vagrant
authormarc.nachin <you@example.commarc.nachin@auf.org>
Wed, 29 Jan 2014 17:25:40 +0000 (18:25 +0100)
committermarc.nachin <you@example.commarc.nachin@auf.org>
Wed, 29 Jan 2014 17:25:40 +0000 (18:25 +0100)
vagrant/provision/databases.sh [deleted file]
vagrant/provision/project.sh [deleted file]
vagrant/provision/root.sh [deleted file]

diff --git a/vagrant/provision/databases.sh b/vagrant/provision/databases.sh
deleted file mode 100644 (file)
index dfa546b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-cd /vagrant
-
-EXT_SQL=".sql"
-MYSQL_USER="vagrant"
-MYSQL_PASS="vagrant"
-MYSQL_CMD="mysql --user=$MYSQL_USER --password=$MYSQL_PASS"
-
-# Importe les dumps SQL
-for FILE in $(find vagrant/db -name *$EXT_SQL -type f); do
-    DB_NAME=`basename $FILE $EXT_SQL`
-    $MYSQL_CMD -e "CREATE DATABASE IF NOT EXISTS $DB_NAME;"
-    $MYSQL_CMD --database=$DB_NAME < "$FILE"
-done
diff --git a/vagrant/provision/project.sh b/vagrant/provision/project.sh
deleted file mode 100644 (file)
index 5828d2e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-cd /vagrant
-
-# Buildout
-python bootstrap.py
-bin/buildout -c devel.cfg
-
-# Préparation de l'application
-bin/django syncdb --noinput --migrate
diff --git a/vagrant/provision/root.sh b/vagrant/provision/root.sh
deleted file mode 100644 (file)
index ef1ec8d..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-export DEBIAN_FRONTEND=noninteractive
-
-# Installation des paquets Debian
-apt-get install -qy mysql-client mysql-server
-apt-get install -qy apache2
-apt-get install -qy phpmyadmin
-
-apt-get install -qy python-virtualenv
-apt-get install -qy ipython
-
-apt-get install -qy python-mysqldb
-apt-get install -qy python-imaging
-apt-get install -qy python-lxml
-
-apt-get install -qy python-django
-apt-get install -qy python-django-south
-#apt-get install -qy python-django-filebrowser
-
-
-# Configuration de l'utilisateur Db vagrant
-mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'vagrant'@'localhost' IDENTIFIED BY 'vagrant' WITH GRANT OPTION;"
-
-# Configuration de phpmyadmin
-echo "<?php
-\$dbuser='vagrant';
-\$dbpass='vagrant';
-\$basepath='';
-\$dbname='phpmyadmin';
-\$dbserver='';
-\$dbport='';
-\$dbtype='mysql';" > /etc/phpmyadmin/config-db.php
-
-if [ ! -f /etc/apache2/conf.d/phpmyadmin.conf ];
-then
-    ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
-fi
-apache2ctl restart
-