Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit f63a8dc

Browse files
author
Alexander Paliarush
committed
- Eliminated code duplication when clearing cache
1 parent 81130e9 commit f63a8dc

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

install_environment.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ fi
4848
echo "date.timezone = America/Chicago" >> /etc/php5/cli/php.ini
4949

5050
# Configure XDebug to allow remote connections from the host
51-
echo "xdebug.max_nesting_level=200 \
52-
xdebug.remote_enable=1 \
53-
xdebug.remote_connect_back=1" >> /etc/php5/cli/conf.d/20-xdebug.ini
51+
echo 'xdebug.max_nesting_level=200
52+
xdebug.remote_enable=1
53+
xdebug.remote_connect_back=1' >> /etc/php5/cli/conf.d/20-xdebug.ini
5454

5555
# Restart Apache
5656
service apache2 restart
@@ -79,4 +79,4 @@ chmod -R 755 /var/www
7979

8080
# Declare path to scripts supplied with vagrant and Magento
8181
magento_dir="/var/www/magento2ce"
82-
echo "export PATH=\$PATH:/vagrant/bin:${magento_dir}/bin" >> /home/vagrant/.profile
82+
echo "export PATH=\$PATH:/vagrant/bin:${magento_dir}/bin" >> /etc/profile

install_magento.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ magento_dir="/var/www/magento2ce"
2525
cd ${magento_dir}
2626

2727
# Clear cache
28-
mv var/.htaccess .var_htaccess.back && rm -rf var/* && mv .var_htaccess.back var/.htaccess
29-
mv pub/static/.htaccess pub/static_htaccess.back && rm -rf pub/static/* && mv pub/static_htaccess.back pub/static/.htaccess
30-
cd "${magento_dir}/dev/tests/integration" && mv tmp/.gitignore tmp_gitignore.back && rm -rf tmp/* && mv tmp_gitignore.back tmp/.gitignore
31-
cd "${magento_dir}/dev/tests/unit" && rm -rf tmp/*
28+
magento_clear_cache
3229

3330
# Remove configuration files
3431
rm -f "${magento_dir}/app/etc/config.php"

0 commit comments

Comments
 (0)