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
| # Disable automatic WordPress updates | |
| if grep "WP_AUTO_UPDATE_CORE" wp-config.php; then (sed -i "/WP_AUTO_UPDATE_CORE/c\define( 'WP_AUTO_UPDATE_CORE', false );" wp-config.php); else (sed -i "/^.*That's all/i define( 'WP_AUTO_UPDATE_CORE', false );" wp-config.php); fi | |
| # Downgrade WordPress to 5.8.3 | |
| backup=WP_`date +%F-%H%M%S` && \ | |
| mkdir $backup && \ | |
| mv wp-admin $backup && \ | |
| mv wp-includes $backup && \ | |
| mv *.php $backup && \ | |
| wget https://github.com/WordPress/WordPress/archive/refs/tags/5.8.3.zip && \ |
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
| # Change WordPress updates to minor only | |
| if grep "WP_AUTO_UPDATE_CORE" wp-config.php; then (sed -i "/WP_AUTO_UPDATE_CORE/c\define( 'WP_AUTO_UPDATE_CORE', 'minor' );" wp-config.php); else (sed -i "/^.*That's all/i define( 'WP_AUTO_UPDATE_CORE', 'minor' );" wp-config.php); fi | |
| # Downgrade WordPress to 5.8.3 | |
| backup=WP_`date +%F-%H%M%S` && \ | |
| mkdir $backup && \ | |
| mv wp-admin $backup && \ | |
| mv wp-includes $backup && \ | |
| mv *.php $backup && \ | |
| wget https://github.com/WordPress/WordPress/archive/refs/tags/5.8.3.zip && \ |
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
| # Downgrade WordPress to 5.8.3 | |
| backup=WP_`date +%s` && \ | |
| mkdir $backup && \ | |
| mv wp-admin $backup && \ | |
| mv wp-includes $backup && \ | |
| mv *.php $backup && \ | |
| wget https://github.com/WordPress/WordPress/archive/refs/tags/5.8.3.zip && \ | |
| unzip 5.8.3.zip && \ | |
| rm -rf WordPress-5.8.3/wp-content && \ | |
| mv WordPress-5.8.3/* . && \ |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| imapcopy | |
| Simple tool to copy folders from one IMAP server to another server. | |
| :copyright: (c) 2013 by Christoph Heer. | |
| :license: BSD, see LICENSE for more details. | |
| """ |