Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-15-2007, 06:33 PM   #1
minusonebit
So Fucking Banned
 
Join Date: Feb 2006
Posts: 7,391
Useful Blog Script I Made

I finally got tired of copying the update files of the All in One SEO Pack for Wordpress to each and every installation. So I made this little script to do it for me. Figured I'd share in case anyone else is tired of fucking with such things. You could customize this to roll out in mass any plugins really. You just have to setup your paths and make blocks for each site you want to update, then its as simple as uploading ONE copy and rolling it out.

Released without warranty or support of any kind... use at your own risk.

Code:
#!/usr/local/bin/bash

clear
echo " "
echo "Wordpress All in One SEO Pack Update Server-Wide Rollout Tool"
echo " "
echo "Copyleft 2007 by minusonebit. Only a couple of rights reserved. You may do what you want with this script - except sell it or remove this copyleft notice. If you remove this notice, you understand and agree that your ass belongs to me. Released without support or warranty of any kind. Use at your own risk." 
echo " "
echo "This script updates The All in One SEO Pack on ALL wordpress installations on this server. To run, put the new version of all_in_one_seo_pack.php in '/path/to/source/file/' and let 'er rip!"
echo " "
echo "Strike ENTER to RUN, Ctrl-C to ABORT"; read
echo " "
echo "Updating Site 1..."
cp -f /path/to/source/file/all_in_one_seo_pack.php /usr/local/www/domains/domain1.com/htdocs/wp-content/plugins
chown www:www /usr/local/www/domains/domain1.com/htdocs/wp-content/plugins/all_in_one_seo_pack.php
echo "Updating Site 1... done."
echo "Updating Site 2..."
cp -f /path/to/source/file/all_in_one_seo_pack.php /usr/local/www/domains/domain2.com/htdocs/wp-content/plugins
chown www:www /usr/local/www/domains/domain2.com/htdocs/wp-content/plugins/all_in_one_seo_pack.php
echo "Updating Site 2... done."
echo " "
echo "Update Finished. Check for errors above."
echo " "
echo "Exiting the system, goodbye."
echo " "
Eventually, I am gonna write one of these to roll Wordpress updates themselves out. Have fun and remember, you can return the script above for the price you paid minus a 15% restocking fee.

Last edited by minusonebit; 12-15-2007 at 06:36 PM..
minusonebit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2007, 06:35 PM   #2
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
A script to copy one file, twice.

God damn you're a bourne demon.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2007, 06:37 PM   #3
minusonebit
So Fucking Banned
 
Join Date: Feb 2006
Posts: 7,391
Quote:
Originally Posted by GrouchyAdmin View Post
A script to copy one file, twice.

God damn you're a bourne demon.
Well, I have like 40 blogs on the server. No point in putting 40 lines in the example. It does save time. I am sure you have something better that you use. So post it and maybe I'll use yours. Otherwise, be quiet.
minusonebit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2007, 07:07 PM   #4
st0ned
Confirmed User
 
st0ned's Avatar
 
Industry Role:
Join Date: Mar 2007
Location: Arizona
Posts: 8,437
Does it steal my epassporte password so that you can post it on your blog?
__________________
Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts.
We will guarantee and beat your current EPC to win your dating traffic!
Skype: ConversionSharks || Email: info /@/ conversionsharks.com
st0ned is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2007, 07:16 PM   #5
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Yes, a handful of copy/chown statements makes much more sense than

for n in domain1.com domain2.com domain3.com; do cp file /path/to/$n/htdocs/lolwp/i/steal/passwords/; chown www:www $!/file chmod 664 $!; done

But you should add a few more echo statements and maybe a 'read y' so people can hit enter just to see your badass script give credit before doing it's thing.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2007, 08:01 PM   #6
teg0
Confirmed User
 
teg0's Avatar
 
Join Date: Jan 2006
Location: Gringo in Puerto Rico
Posts: 4,204
nice script. i can see some adjustments that need to be made and some improvements. I might build upon it and post my revisions here.
teg0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2007, 08:06 PM   #7
TTiger
Confirmed User
 
TTiger's Avatar
 
Join Date: Mar 2002
Location: quebec, canada
Posts: 3,030
i like blog script:-)
__________________
TTiger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.