-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·45 lines (34 loc) · 1.05 KB
/
setup.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#
# Author: Marco Guidara
# Date: August 24, 2023
# Name: setup.sh
# Purpose: Self destroying .sh file. Install latest WP Bedrock version and most used plugins.
currentscript=$0
function finish {
echo "Remove .git folder.";
echo;
rm -rf ./.git;
echo "shredding ${currentscript}";
rm ${currentscript};
echo "Setup procedure completed.";
echo
}
echo "Install Bedrock";
echo;
composer create-project roots/bedrock;
mv ./bedrock/* .;
rm -r ./bedrock;
echo "Install Plugins";
echo;
composer require wpackagist-plugin/timber-library;
composer require wpackagist-plugin/acf-extended;
composer require wpackagist-plugin/wp-migrate-db;
composer require wpackagist-plugin/wordpress-seo;
composer require wpackagist-plugin/duplicate-page;
composer require wpackagist-plugin/contact-form-7;
composer require wpackagist-plugin/wp-mail-smtp;
composer require wpackagist-plugin/contact-form-7-dynamic-text-extension;
composer upgrade;
cp -r ./web/app/plugins/timber-library/timber-starter-theme ./web/app/themes/
trap finish EXIT;