#!bin/bash # # This script last updated 14 July 2010 if [ -d ~/public_html/sites/all/themes ] then echo Found folder \~/public_html/sites/all/themes else cd ~/public_html/sites/all mkdir themes if [ -d ~/public_html/sites/all/themes ] then echo Created folder \~/public_html/sites/all/themes else echo Failed to create folder \~/public_html/sites/all/themes; exit 1 fi fi if [ -d ~/public_html/sites/all/themes/uploads ] then echo Found folder \~/public_html/sites/all/themes/uploads else cd ~/public_html/sites/all/themes mkdir uploads if [ -d ~/public_html/sites/all/themes/uploads ] then echo Created folder \~/public_html/sites/all/themes/uploads else echo Failed to create folder \~/public_html/sites/all/themes/uploads; exit 1 fi fi if [ -d ~/public_html/sites/default/files ] then echo Found folder \~/public_html/sites/default/files else cd ~/public_html/sites chmod u+w default mkdir ./default/files chmod u-w default if [ -d ~/public_html/sites/default/files ] then echo Created folder \~/public_html/sites/default/files else echo Failed to create folder \~/public_html/sites/default/files; exit 1 fi fi if [ -f ~/public_html/sites/all/themes/aboutpeople/aboutpeople.info ] then echo Found theme Aboutpeople else cd ~/public_html/sites/all/themes wget ftp.drupal.org/files/projects/aboutpeople-6.x-1.1.tar.gz tar -xf aboutpeople-6.x-1.1.tar.gz mv aboutpeople-6.x-1.1.tar.gz ./uploads if [ -f ~/public_html/sites/all/themes/aboutpeople/aboutpeople.info ] then echo Installed theme Aboutpeople else echo Failed to install theme Aboutpeople; exit 1 fi fi if [ -f ~/public_html/sites/all/themes/amadou/amadou.info ] then echo Found theme Amadou else cd ~/public_html/sites/all/themes wget ftp.drupal.org/files/projects/amadou-6.x-1.1.tar.gz tar -xf amadou-6.x-1.1.tar.gz mv amadou-6.x-1.1.tar.gz ./uploads if [ -f ~/public_html/sites/all/themes/amadou/amadou.info ] then echo Installed theme Amadou else echo Failed to install theme Amadou; exit 1 fi fi if [ -f ~/public_html/sites/all/themes/marinelli/marinelli.info ] then echo Found theme Marinelli else cd ~/public_html/sites/all/themes wget ftp.drupal.org/files/projects/marinelli-6.x-2.96.tar.gz tar -xf marinelli-6.x-2.96.tar.gz mv marinelli-6.x-2.96.tar.gz ./uploads if [ -f ~/public_html/sites/all/themes/marinelli/marinelli.info ] then echo Installed theme Marinelli else echo Failed to install theme Marinelli; exit 1 fi fi if [ -f ~/public_html/sites/all/themes/pixture_reloaded/pixture_reloaded.info ] then echo Found theme Pixture Reloaded else cd ~/public_html/sites/all/themes wget ftp.drupal.org/files/projects/pixture_reloaded-6.x-3.2.tar.gz tar -xf pixture_reloaded-6.x-3.2.tar.gz mv pixture_reloaded-6.x-3.2.tar.gz ./uploads if [ -f ~/public_html/sites/all/themes/pixture_reloaded/pixture_reloaded.info ] then echo Installed theme Pixture Reloaded else echo Failed to install theme Pixture Reloaded; exit 1 fi fi if [ -f ~/public_html/sites/all/themes/pluralism/pluralism.info ] then echo Found theme Pluralism else cd ~/public_html/sites/all/themes wget ftp.drupal.org/files/projects/pluralism-6.x-1.0.tar.gz tar -xf pluralism-6.x-1.0.tar.gz mv pluralism-6.x-1.0.tar.gz ./uploads if [ -f ~/public_html/sites/all/themes/pluralism/pluralism.info ] then echo Installed theme Pluralism else echo Failed to install theme Pluralism; exit 1 fi fi if [ -f ~/public_html/sites/all/themes/plutado/plutado.info ] then echo Found theme Plutado else cd ~/public_html/sites/all/themes wget ftp.drupal.org/files/projects/plutado-6.x-1.5.tar.gz tar -xf plutado-6.x-1.5.tar.gz mv plutado-6.x-1.5.tar.gz ./uploads if [ -f ~/public_html/sites/all/themes/plutado/plutado.info ] then echo Installed theme Plutado else echo Failed to install theme Plutado; exit 1 fi fi if [ -f ~/public_html/sites/all/themes/plutado_grey/plutado_grey.info ] then echo Found theme Plutado Grey else cd ~/public_html/sites/all/themes wget ftp.drupal.org/files/projects/plutado_grey-6.x-1.7.tar.gz tar -xf plutado_grey-6.x-1.7.tar.gz mv plutado_grey-6.x-1.7.tar.gz ./uploads if [ -f ~/public_html/sites/all/themes/plutado_grey/plutado_grey.info ] then echo Installed theme Plutado Grey else echo Failed to install theme Plutado Grey; exit 1 fi fi if [ -f ~/public_html/sites/all/themes/sky/sky.info ] then echo Found theme Sky else cd ~/public_html/sites/all/themes wget ftp.drupal.org/files/projects/sky-6.x-3.9.tar.gz tar -xf sky-6.x-3.9.tar.gz mv sky-6.x-3.9.tar.gz ./uploads if [ -f ~/public_html/sites/all/themes/sky/sky.info ] then echo Installed theme Sky else echo Failed to install theme Sky; exit 1 fi fi if [ -f ~/public_html/sites/all/themes/summertime/summertime.info ] then echo Found theme Summertime else cd ~/public_html/sites/all/themes wget ftp.drupal.org/files/projects/summertime-6.x-1.2.tar.gz tar -xf summertime-6.x-1.2.tar.gz mv summertime-6.x-1.2.tar.gz ./uploads if [ -f ~/public_html/sites/all/themes/summertime/summertime.info ] then echo Installed theme Summertime else echo Failed to install theme Summertime; exit 1 fi fi if [ -f ~/public_html/sites/all/themes/twilight/twilight.info ] then echo Found theme Twilight else cd ~/public_html/sites/all/themes wget ftp.drupal.org/files/projects/twilight-6.x-1.1.tar.gz tar -xf twilight-6.x-1.1.tar.gz mv twilight-6.x-1.1.tar.gz ./uploads if [ -f ~/public_html/sites/all/themes/twilight/twilight.info ] then echo Installed theme Twilight else echo Failed to install theme Twilight; exit 1 fi fi if [ -f ~/public_html/sites/all/themes/zen/zen/zen.css ] then echo Found theme Zen else cd ~/public_html/sites/all/themes wget ftp.drupal.org/files/projects/zen-6.x-1.0.tar.gz tar -xf zen-6.x-1.0.tar.gz mv zen-6.x-1.0.tar.gz ./uploads if [ -f ~/public_html/sites/all/themes/zen/zen/zen.css ] then echo Installed theme Zen else echo Failed to install theme Zen; exit 1 fi fi