Skip to content

Instantly share code, notes, and snippets.

View Jbunsto's full-sized avatar

Jason Bunston Jbunsto

  • City of Toronto
  • Toronto ON
View GitHub Profile
cd /var/www/html/
echo > .temp
echo > .temp2
wp plugin update --all --allow-root >> .temp
cat .temp | grep -o 'https://.*.zip' >> .temp2
wget -i .temp2
find *.zip -exec wp plugin install --force {} --allow-root \;
mv -f *.zip ./updates/
echo on
#!/bin/sh
#!/usr/bin/env bash
# File Name: check_computer_name.sh
# Version: 1.5
# Author: Jason Bunston, City of Toronto
# Created: 06/02/2016
# Modified: 06/03/2016