Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 007d87165d | |||
| 543355b4b3 |
@ -85,8 +85,15 @@ sudo systemctl restart postgresql
|
||||
sudo systemctl status postgresql --no-pager
|
||||
|
||||
echo "=== Import des schémas et données ==="
|
||||
<<<<<<< HEAD
|
||||
#sudo -u archiweb_user psql -U archiweb_user -d archiweb_db -f /vagrant/database/schema.sql -W <<< "archiweb_pass"
|
||||
#sudo -u archiweb_user psql -U archiweb_user -d archiweb_db -f /vagrant/database/data.sql -W <<< "archiweb_pass"
|
||||
PGPASSWORD=archiweb_pass psql -U archiweb_user -d archiweb_db -f /vagrant/database/schema.sql
|
||||
PGPASSWORD=archiweb_pass psql -U archiweb_user -d archiweb_db -f /vagrant/database/data.sql
|
||||
=======
|
||||
# Attendre que PostgreSQL soit complètement redémarré
|
||||
sleep 3
|
||||
>>>>>>> develop
|
||||
|
||||
# Import avec PGPASSWORD et vérification des fichiers
|
||||
if [ -f /vagrant/database/schema.sql ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user