-
-
Save Quinten/d7444a72f9fb4458c510 to your computer and use it in GitHub Desktop.
Activate maintenance mode on Magento 2 w/ IP address exclusion list
This file contains hidden or 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 | |
# Comma separated list of IPs to be excluded | |
echo "123.123.123.123,234.234.234.234">var/.maintenance.ip | |
# For the rest of the world we go down for maintenance NOW | |
touch var/.maintenance.flag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment