-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoUI.sh
executable file
·30 lines (21 loc) · 885 Bytes
/
doUI.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
#Does the universal install for plone4
echo 'Entered doUI.sh - to run the Unified Installer'
#This is the most volatile part of the install
URL=http://launchpad.net/plone/4.0/4.0.3/+download/Plone-4.0.3-20110720-UnifiedInstaller.tgz
echo 'getting the Universal Installer from '
echo $URL
cd scratch
curl -OL $URL
echo 'untar it'
FILE=`python -c "import urlparse as up; u=\"$URL\";s=up.urlparse(u); f=s.path; print f.split('/')[-1]"`
tar xzf $FILE
echo 'run the install'
#ROOT=`python -c "import os;s=os.path.splitext(\"$FILE\"); print s[0]"`
#cd $ROOT
#The above did not work in 4.0.3 - since the convention changed.
#TODO, see if the pattern changes aagain and revisit.
cd Plone-4.0.3-UnifiedInstaller
DEST=`python -c "import os;s=os.path.expanduser('~');print s"`
./install.sh -target=$DEST/Plone4 zeo
echo 'Plone Universal Installer off-the-shelf setup complete'