Skip to content

Commit 8a3f251

Browse files
committed
fix a few typos and run one of the setup scripts with sudo
1 parent c5f4e38 commit 8a3f251

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ directory. On a fresh Ubuntu 12 server, you should only need to run
77
<code>scripts/bootstrap.sh</code>, which calls other scripts to set
88
most things up. See below for some details on the other scripts.
99

10-
You'll still need to manually configure a few things:
10+
Note that one of the scripts is run with sudo. If you don't have sudo
11+
enabled for this user, then you'll need to run the scripts manually.
12+
13+
Regardless of how you run the setup scripts, you'll still need to
14+
manually configure a few things:
1115

1216
1. Edit <code>docroot/wp-config-local.php</code> and fill in values as
1317
needed by WordPress.
1418
2. Set up SSL keys in /etc/ssl/*
15-
3. Edit /etc/apache2/sites-available/<hostname> if needed (e.g. to
19+
3. Edit /etc/apache2/sites-available/(hostname) if needed (e.g. to
1620
change SSL key locations)
1721
4. Load DB data from another WordPress install (see below)
1822

scripts/bootstrap.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
function usage() {
3+
function usage {
44
echo "Usage: $0 <hostname> <db> <dbuser>"
55
exit 1
66
}
@@ -13,6 +13,6 @@ DBUSER=${3}
1313

1414
TOPDIR="$( cd "$( dirname "${BASH_SOURCE[0]}/.." )" && pwd )"
1515

16-
${TOPDIR}/scripts/bootstrap_server_ubuntu.sh
16+
sudo ${TOPDIR}/scripts/bootstrap_server_ubuntu.sh
1717
${TOPDIR}/scripts/bootstrap_mysql.sh "${DB}" "${DBUSER}"
1818
${TOPDIR}/scripts/bootstrap_checkout.sh

scripts/bootstrap_mysql.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
function usage() {
3+
function usage {
44
echo "Usage: $0 <new-database> <new-user>"
55
exit 1
66
}

0 commit comments

Comments
 (0)