Skip to content

Instantly share code, notes, and snippets.

View jwr456's full-sized avatar

Joel Roberts jwr456

  • Red Haw, LLC
  • New York, NY
View GitHub Profile
@jwr456
jwr456 / wordpress-passwort-reset-unmultisite.php
Last active March 26, 2021 03:41 — forked from eteubert/wordpress-passwort-reset-unmultisite.php
Multisite: Passwort Reset on Local Blog
<?php
/**
* Plugin Name: Multisite: Passwort Reset on Local Blog
* Plugin URI: https://gist.github.com/eteubert/293e07a49f56f300ddbb
* Description: By default, WordPress Multisite uses the main blog for passwort resets. This plugin enables users to stay in their blog during the whole reset process.
* Version: 1.0.0
* Author: Eric Teubert
* Author URI: http://ericteubert.de
* License: MIT
*/
#!/bin/bash
for x in `/usr/bin/dig +short servers.ik2.com`; do echo "$x OK"; done > /etc/postfix/client_access
/usr/sbin/postmap /etc/postfix/client_access
/etc/init.d/postfix reload