Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. WEBDIR=/home/*/public_html/*
  4.  
  5. for dir in $WEBDIR;
  6. do
  7. echo $(wp core check-update --path=/home/$dir/public_html --allow-root)
  8.  
  9. done
  10.  
  11.  
  12.  
  13. #find /home/ -type d \( -name public_html \) -exec bash -c "cd '{}' && echo $(wp core check-update --allow-root)" \;
  14.  
  15. #www_dir=/home/
  16.  
  17. #for site_path in $( cd $www_dir ; find . -type d -name 'wp-admin' | sort -n ); do
  18. echo $(wp core check-update)
  19. #done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement