Created
December 12, 2014 02:46
-
-
Save mario21ic/88a54125c3a8a81c8c3f to your computer and use it in GitHub Desktop.
Script for update Joomla to 2.5.28
This file contains hidden or 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/bash | |
accounts=(usuario1 usuario2 usuario3) | |
for account in ${accounts[@]}; | |
do | |
su - ${account} -s /bin/bash -c "cd /home/${account}/public_html && unzip -q -o /tmp/Joomla_2.5.x_to_2.5.28-Stable-Patch_Package.zip"; | |
echo "account "${account}" updated" >> $HOME/report_update_joomla_2_5.csv; | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment