nineskeletor/src/nineskeletor-1.0/scripts/reconfigure.sh

27 lines
583 B
Bash
Raw Normal View History

2020-07-01 13:32:02 +02:00
#!/bin/bash
# Se positionner sur la racine du projet
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd ${DIR}
cd ..
DIR=$(pwd)
# Déclaration d'un proxy
. $DIR/scripts/proxy.sh
# Mise en place du fichier d'environnement model
2020-10-05 16:10:04 +02:00
yes 2>/dev/null | cp $DIR/scripts/.env.model $DIR/.env
2020-07-01 13:32:02 +02:00
# Installation des dépendances composer
echo COMPOSER = Install
composer install --quiet
2020-07-01 13:32:02 +02:00
php bin/console app:AppInit --env=prod
php bin/console app:CronInit --env=prod
php bin/console app:Script --env=prod
2020-07-01 13:32:02 +02:00
# Permissions
echo PERMISSIONS
2020-07-01 13:32:02 +02:00
./scripts/perm.sh www-data
echo