hydra-sql/containers/hydra-sql/first-run.sh
rudy ad008eb129
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit
first run: ajout de npm install
2022-12-13 16:38:25 +01:00

17 lines
428 B
Bash

#!/bin/bash
set -xeo pipefail
[ ! -d /var/www/.config ] && sudo mkdir -p /var/www/.config
[ -d /var/www/.config ] && sudo chown -R www-data: /var/www/.config
[ ! -d /var/www/.cache ] && sudo mkdir -p /var/www/.cache
[ -d /var/www/.cache ] && sudo chown -R www-data: /var/www/.cache
sudo chown -R www-data: /var/www
cp /bin/composer.phar /var/www/composer.phar
cd /var/www
php composer.phar install
npm install
npm run build