-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
72 lines (61 loc) · 1.52 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
###########################
# INSTALL
###########################
function gitignore () {
echolor y "Mise en place du gitignore dans "$install_path
cat << EOF > $install_path"/.gitignore"
# marmite
/.marmite
# OS or Editor folders
._*
.cache
.DS_Store
.idea
Thumbs.db
.tmp
nbproject
# Node
node_modules
npm-*.log
*.log
web/app/advanced-cache.php
web/app/backup-db/
web/app/backups/
web/app/blogs.dir/
web/app/cache/
web/app/upgrade/
web/app/uploads/
web/app/plugins/*
!web/app/plugins/advanced-custom-fields-pro
!web/app/plugins/sitepress-multilingual-cms
!web/app/plugins/wpml-string-translation
!web/app/plugins/wpml-translation-management
web/app/themes/acti-starter-theme
web/wp/
# Composer
/vendor/
EOF
}
function conffiles () {
echolor y "Mise en place des fichiers de configutations \"-at-preprod\" et \"-at-prod\" dans "$install_path
cp $install_path"/.env.example" $install_path"/.env-at-preprod"
cp $install_path"/.env.example" $install_path"/.env-at-prod"
}
echolor y "Installation de Wordpress dans "$install_path
composer create-project roots/bedrock $install_path/tmpinstall
cd $install_path/tmpinstall
mv .[!.]* ../
mv * ../
cd ../
rm -rf $install_path/tmpinstall
# Require plugins
composer require acti/acti-starter-theme:dev-master
composer require timber/timber
composer require tedivm/stash
composer require wpackagist-plugin/cookie-law-info
composer require wpackagist-plugin/kint-debugger
composer require wpackagist-plugin/autodescription
composer require wpackagist-plugin/breadcrumb-navxt
gitignore
conffiles