Last active
July 20, 2020 15:04
-
-
Save lewisvoncken/2a0e2bc8992be07d1af7ed7092764b23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TIME=$(date +%s) | |
# xp-varnish.vcl is used so it can not be overwritten by the varnish.vcl generated through the admin | |
varnishadm vcl.load mag2_$TIME /data/web/magento2/var/xp-varnish.vcl | |
varnishadm vcl.use mag2_$TIME | |
printf "${YELLOW}NOTICE${NC} - Please ignore the error below.\n"; | |
varnishadm vcl.discard boot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment