-
Notifications
You must be signed in to change notification settings - Fork 1
/
press-installer.sh
97 lines (59 loc) · 1.52 KB
/
press-installer.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/bin/bash
###############################################################################
##
##
## Famous 10 Minute Raspberry Pi WordPress Install
##
## Jason Henning
##
##
###############################################################################
# Get starting time. The goal is under 10 minutes after all!
t1=$(date +%s)
# get the current directory so we can return to it afterwards.
DIR_CURRENT=$(pwd)
# change to the scripts directory
DIR_SOURCE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR_SOURCE
# include the files with the functions
. functs/whiptail.sh
. functs/update.sh
. functs/lamp.sh
. functs/phpmyadmin.sh
. functs/wordpress.sh
. functs/wp-permissions.sh
. functs/display-stuff.sh
. functs/config-wait.sh
# stop the clock
t2=$(date +%s)
# Get the paramers from the user
get_values
# start the clock
t3=$(date +%s)
# update and upgrade
update
# install lamp
lamp
# install phpmyadmin 5.0
phpmyadmin
# install WP
get_wordpress
# stop the clock
t4=$(date +%s)
# let the user to config WP with their browser
config_wait
# start the clock
t5=$(date +%s)
# last step
wp_permissions
# stop the clock
t6=$(date +%s)
display_stuff
cd $DIR_CURRENT
# echo 'WP_DATABASE_NAME '$WP_DATABASE_NAME
# echo 'WP_DATABASE_USERNAME '$WP_DATABASE_USERNAME
# echo 'WP_DATABASE_PASSWORD '$WP_DATABASE_PASSWORD
# echo 'WP_PREFIX '$WP_PREFIX
# echo 'WP_PLUGIN_DELETE '$WP_PLUGIN_DELETE
# echo 'WP_THEMES '$WP_THEMES
# echo 'WP_DEBUG '$WP_DEBUG