-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_config.sh
More file actions
29 lines (22 loc) · 831 Bytes
/
create_config.sh
File metadata and controls
29 lines (22 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
echo "Creating config files if necessary..."
if [ ! -f app/config/site/parameters.yml ]; then
echo "app/config/site/parameters.yml"
cp app/config/site/parameters_dist.yml app/config/site/parameters.yml
fi
if [ ! -f app/config/site/hexaa_admins.yml ]; then
echo "app/config/site/hexaa_admins.yml"
cp app/config/site/hexaa_admins_dist.yml app/config/site/hexaa_admins.yml
fi
if [ ! -f app/config/site/hexaa_entityids.yml ]; then
echo "app/config/site/hexaa_entityids.yml"
cp app/config/site/hexaa_entityids_dist.yml app/config/site/hexaa_entityids.yml
fi
if [ ! -f web/.htaccess ]; then
echo "web/.htaccess"
cp web/.htaccess_dist web/.htaccess
fi
echo "Creating default directories if necessary..."
[ -d app/cache ] || mkdir app/cache
[ -d app/logs ] || mkdir app/logs
echo "Done!"