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

25 lines
507 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
if [ ! -f $DIR/.env ]; then
mv $DIR/scripts/.env.model $DIR/.env
fi
# Installation des dépendances composer
composer install
php bin/console app:AppInit --env=prod
php bin/console app:CronInit --env=prod
# Permissions
./scripts/perm.sh www-data