Skip to content

Instantly share code, notes, and snippets.

@alex-vlasov
alex-vlasov / ubuntu13_10_downgrade_php_5_3.sh
Last active December 27, 2015 11:39 — forked from intel352/php5_4_downgrade_5_3.sh
Downgrade php to 5.3 on ubuntu 13.10
#!/bin/bash
#
# Original for 5.3 by Ruben Barkow (rubo77) http://www.entikey.z11.de/
# release 1 PHP5.4 to 5.3 by Emil Terziev ( foxy ) Bulgaria
# Originally Posted by Bachstelze http://ubuntuforums.org/showthread.php?p=9080474#post9080474
# OK, here's how to do the Apt magic to get PHP packages from the precise repositories:
echo "Am I root? "
if [ "$(whoami &2>/dev/null)" != "root" ] && [ "$(id -un &2>/dev/null)" != "root" ] ; then