Files
schedule/scripts/reconfigure.sh

23 lines
526 B
Bash
Raw Normal View History

2020-05-11 15:53:07 +02:00
#!/bin/bash
cd /var/www/html/schedule
2020-05-11 17:03:33 +02:00
# Déclaration d'un proxy
2020-09-01 11:59:20 +02:00
. scripts/proxy.sh
2020-05-11 15:53:07 +02:00
2020-05-12 08:45:19 +02:00
# Mise en place du fichier d'environnement model
2023-09-06 14:23:54 +02:00
yes 2>/dev/null | cp /var/www/html/schedule/scripts/.env.model $DIR/.env
2020-05-12 08:45:19 +02:00
2020-05-11 15:53:07 +02:00
# Installation des dépendances composer
2023-08-31 15:43:48 +02:00
echo COMPOSER = Install
export COMPOSER_ALLOW_SUPERUSER=1
composer self-update --1 --quiet
composer install --quiet
2020-05-11 15:53:07 +02:00
php bin/console app:AppInit --env=prod
php bin/console app:CronInit --env=prod
php bin/console app:Script --env=prod
2020-05-11 15:53:07 +02:00
# Permissions
./scripts/perm.sh www-data