|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
So Fucking Banned
|
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 " " |
|
|
|
|
|
#2 |
|
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
A script to copy one file, twice.
God damn you're a bourne demon.
__________________
|
|
|
|
|
|
#3 | |
|
So Fucking Banned
|
Quote:
![]() |
|
|
|
|
|
|
#4 |
|
Confirmed User
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 |
|
|
|
|
|
#5 |
|
Now choke yourself!
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.
__________________
|
|
|
|
|
|
#6 |
|
Confirmed User
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.
|
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: Mar 2002
Location: quebec, canada
Posts: 3,030
|
i like blog script:-)
|
|
|
|