Skip to content

Instantly share code, notes, and snippets.

@mario21ic
Created December 12, 2014 02:46
Show Gist options
  • Save mario21ic/88a54125c3a8a81c8c3f to your computer and use it in GitHub Desktop.
Save mario21ic/88a54125c3a8a81c8c3f to your computer and use it in GitHub Desktop.
Script for update Joomla to 2.5.28
#!/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