Last active
December 20, 2015 06:49
-
-
Save renekreijveld/6089197 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# updatejoomlas | |
# updates your Joomla 2.5.x websites to the latest version (2.5.13 in this example) | |
# | |
# Copyright 2013 Rene Kreijveld - [email protected] | |
# | |
# This program is free software; you may redistribute it and/or modify it. | |
wget http://joomlacode.org/gf/download/frsrelease/18554/83288/Joomla_2.5.x_to_2.5.13-Stable-Patch_Package.zip -O /joomla/25xupdate.zip | |
src=/joomla/25xupdate.zip | |
do_update() | |
{ | |
# if configuration.php present then proceed | |
if [ -f configuration.php ] | |
then | |
# extract update files | |
unzip -q -o $src | |
# set rights | |
owner=`pwd | cut -d \/ -f 3` | |
chown -R $owner:$owner .htaccess * | |
fi | |
} | |
echo `date` Start automatic Joomla updates | |
# www.yoursite.nl | |
cd /home/yoursite/domains/www.yoursite.nl/public_html | |
do_update | |
echo `date` www.yoursite.nl updated | |
# next website | |
echo `date` End automatic Joomla updates |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To do: