File tree 2 files changed +21
-5
lines changed
2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ vagrant_synced_folders:
17
17
type :
18
18
create : true
19
19
20
- - local_path : ~/Sites/mysql_data
21
- destination : /srv/mysql_data
20
+ - local_path : ~/Sites/mysql
21
+ destination : /srv/mysql
22
22
type :
23
23
create : true
24
24
owner : 500 # mysql user not created yet, but will have this id when the box is provisioned
25
25
group : 500 # mysql group not created yet, but will have this id when the box is provisioned
26
26
27
- - local_path : ~/Sites/mysql_backups
28
- destination : /srv/mysql_backups
27
+ - local_path : ~/Sites/backup
28
+ destination : /srv/backup
29
29
type :
30
30
create : true
31
31
Original file line number Diff line number Diff line change @@ -3,9 +3,25 @@ echo "******************************"
3
3
echo " * 000-setup_environment.sh *"
4
4
echo " ******************************"
5
5
6
+ if [ ! -d /srv/backup ] || [ ! -d /srv/mysql ] || [ ! -d /srv/www ]; then
7
+ echo -e " \033[1;31mError:\033[0;31m Your config.yml file must include shared mounted folders mapping to /srv/backup, /srv/mysql and /srv/www\033[0m"
8
+ echo -e " \033[0;31mPlease see example.config.yml for how to do set this up.\033[0m"
9
+ echo -e " \033[0;31mThe current operation has been aborted.\033[0m"
10
+ exit 1
11
+ fi
12
+
6
13
# Enable trace printing and exit on the first error
7
14
set -ex
8
15
16
+ # Create backup folders for mysql and web config
17
+ mkdir -p /srv/backup/mysql
18
+ mkdir -p /srv/backup/webconfig
19
+
20
+ # Create folder for mysql data
21
+ mkdir -p /srv/mysql/data
22
+
23
+
24
+
9
25
apt-get update
10
26
11
27
# Install git
@@ -41,7 +57,7 @@ mkdir -p /srv/backup/mysql
41
57
mkdir -p /srv/backup/webconfig
42
58
43
59
# Create folder for mysql data
44
- mkdir -p /erv /mysql/data
60
+ mkdir -p /srv /mysql/data
45
61
46
62
# Copy bash aliases and welcome message for all users
47
63
cp /vagrant/files/00-aliases.sh /etc/profile.d/
You can’t perform that action at this time.
0 commit comments