forked from ScoDoc/DocScoDoc
20 lines
424 B
Bash
20 lines
424 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Install module(s) for calendars
|
||
|
# (if already installed, do nothing)
|
||
|
|
||
|
|
||
|
# Test if installed
|
||
|
# (NB: don't launch python, to be faster and also to avoid import bug zope vs pytz)
|
||
|
|
||
|
if [ -e /opt/zope213/lib/python2.7/site-packages/icalendar ] || [ /usr/lib/python2.7/dist-packages/icalendar ]
|
||
|
then
|
||
|
exit 0 # already installed
|
||
|
else
|
||
|
echo "Installing icalendar"
|
||
|
/opt/zope213/bin/pip install icalendar
|
||
|
fi
|
||
|
|
||
|
|
||
|
|