Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
wcms-vagrant
Commits
bd061a5a
Commit
bd061a5a
authored
Nov 01, 2017
by
Kevin Paxman
Browse files
Make changes to make it run on a Mac without erroring out. Needs to be tested on a PC
parent
e04e02cf
Changes
9
Hide whitespace changes
Inline
Side-by-side
clean.sh
View file @
bd061a5a
#!/bin/bash
if
[
-e
.vagrantfile
]
then
echo
".vagrantfile still exists. "
...
...
manifests/apache.sh
View file @
bd061a5a
#!/bin/bash
echo
""
echo
"Running apache.sh"
echo
""
...
...
manifests/drupal.sh
View file @
bd061a5a
#!/bin/bash
echo
""
echo
"Running drupal.sh"
echo
""
...
...
@@ -312,4 +310,4 @@ for profile in $profiles
do
mkdir
/var/www/
$profile
/apps
done
\ No newline at end of file
manifests/finish.sh
View file @
bd061a5a
#!/bin/bash
echo
""
echo
"Running finish.sh"
echo
""
...
...
@@ -106,7 +104,6 @@ git config --global http.postBuffer 1048576000
## Create the defaultphp files so we can switch between php5.6 and 7.1
echo
"
#!/bin/bash
echo '-------------------------------------------------'
echo 'Changing version of PHP to
${
VGRTPHPDRUPAL8
}
'
echo '-------------------------------------------------'
...
...
@@ -119,7 +116,6 @@ sudo chown vagrant:root /usr/local/bin/defaultphp${VGRTPHPDRUPAL8}.sh
sudo chmod
754 /usr/local/bin/defaultphp
${
VGRTPHPDRUPAL8
}
.sh
echo
"
#!/bin/bash
echo '======================================================='
echo 'Changing version of PHP to
${
VGRTPHPDRUPAL7
}
'
echo '======================================================='
...
...
@@ -133,7 +129,6 @@ sudo chmod 754 /usr/local/bin/defaultphp${VGRTPHPDRUPAL7}.sh
## Create a script to enable Xdebug.
echo
"
#!/bin/bash
echo '================================================================='
echo 'Enabling xdebug...'
echo '================================================================='
...
...
@@ -148,7 +143,6 @@ sudo chmod 754 /usr/local/bin/enable_xdebug.sh
## Create a script to disable Xdebug.
echo
"
#!/bin/bash
echo '================================================================='
echo 'Disabling xdebug...'
echo '================================================================='
...
...
@@ -163,7 +157,6 @@ sudo chmod 754 /usr/local/bin/disable_xdebug.sh
## add a script to create the symlinks for conference and publication sites
echo
"
#!/bin/bash
#
# Script to create symlinks for publication and conference themes (apps folder)
#
...
...
manifests/ubuntu.sh
View file @
bd061a5a
#!/bin/bash
echo
""
echo
"Running ubuntu.sh"
echo
""
...
...
@@ -334,4 +332,4 @@ git config --global core.hooksPath /home/vagrant/uw_wcms_tools/git_hooks/
mv
/root/.gitconfig /home/vagrant/.gitconfig
echo
""
date
echo
""
\ No newline at end of file
echo
""
setup.sh
View file @
bd061a5a
#!/bin/sh
# Vagrantfile variables
## Vagrantfile variables
VGHOSTNAME
=
'wcms-vagrant'
VGIP
=
'192.168.101.20'
VGSITE
=
'fdsu'
...
...
@@ -10,7 +9,7 @@ VGPHPDRUPAL8='7.1'
## Version of PHP needed for Drupal 7 (to match our servers)
## Need to remove the "update-alternatives" line when we go to 7.0 since it isn't needed.
VGPHPVERSION
=
'5.6'
# Check to make sure we will not clobber an existing vm config.
#
# Check to make sure we will not clobber an existing vm config.
if
[
-e
Vagrantfile
]
then
echo
"Vagrantfile exists"
...
...
@@ -80,17 +79,18 @@ while [[ ! ${vgrtemail} =~ ^[a-z0-9]+(\.[a-z0-9]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9]
done
echo
""
echo
'Create the Variable file'
sh ./variables/var.sh
.
./variables/var.sh
chmod
a+x ./manifests/variable.sh
echo
''
echo
'Variable file created.'
echo
''
echo
'Create the Vagrant file.'
sh
./variables/vagrantfile.sh
.
./variables/vagrantfile.sh
echo
'Vagrant file created.'
echo
''
echo
'Create PHPStorm setting files.'
cd
$(
dirname
$0
)
sh
./variables/phpstorm.sh
.
./variables/phpstorm.sh
echo
''
echo
"
********************************************************************************
...
...
@@ -104,4 +104,4 @@ The default user is vagrant and the default password is vagrant.
********************************************************************************
"
$SHELL
##
$SHELL
variables/phpstorm.sh
View file @
bd061a5a
#!/bin/sh
## PHPStorm settings
## creating a variable so the file can be referenced correctly.
my_dir
=
"
$(
dirname
"
$0
"
)
"
$my_dir
/../
manifests/variable.sh
.
manifests/variable.sh
folders
=
"drupal7 drupal7alt drupal7lrel drupal7rel drupal7os drupal8 drupal8alt"
for
folder
in
$folders
...
...
variables/vagrantfile.sh
View file @
bd061a5a
#!/bin/sh
echo
""
echo
"Writing Vagrantfile"
echo
""
...
...
variables/var.sh
View file @
bd061a5a
#!/bin/ba
sh
touch
manifests/variable.
sh
chmod
a+x manifests/variable.sh
cat
>
manifests/variable.sh
<<
EOF
#!/bin/bash
echo ""
echo "Run variable.sh"
echo ""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment