-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite-install.sh
executable file
·26 lines (23 loc) · 1.23 KB
/
site-install.sh
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
#!/bin/bash
cd ${projpath}/${projname}
echo -e "\n${blue}${white}\n\nCopying team dot files for project ...\n${reset}"
cp ${makedir}/defaults/.lando.yml .
cp ${makedir}/defaults/wat.gitignore ./.gitignore
sed -i "s/<project name>/${projname}/g" .lando.yml
echo -e "\n${blue}${white}\n\nStarting Lando ...\n${reset}"
lando start
echo -e "\n${blue}${white}\n\nPerforming Site Install ...\n${reset}"
lando composer require drush/drush
lando drush si standard -y --db-url=mysql://drupal9:drupal9@database/drupal9 \
--site-name="${projname}" \
--site-mail="[email protected]" \
--account-name="superadmin" \
--account-mail="[email protected]" \
--account-pass="admin"
chmod u+w ${projpath}/${projname}/web/sites/default/settings.php
chmod u+w ${projpath}/${projname}/web/sites/default
cp ${makedir}/defaults/settings.php ${projpath}/${projname}/web/sites/default
cp ${makedir}/defaults/settings.local.php ${projpath}/${projname}/web/sites/default
chmod u-w ${projpath}/${projname}/web/sites/default/settings.php
chmod u-w ${projpath}/${projname}/web/sites/default
lando composer config repositories.11 '{"type": "composer", "url": "https://__token__:[email protected]/api/v4/group/11/-/packages/composer/packages.json"}'