Commit 5142f5bf authored by Jonathan Harker's avatar Jonathan Harker

Add python-virtualenv dependency and cron check.

parent afcadb2e
......@@ -11,6 +11,6 @@ Homepage: manual.mahara.org
Package: maharadocs
Architecture: all
Pre-depends: debconf (>= 0.2.17)
Depends: ${misc:Depends}, python-sphinx, apache2, gettext, git-core, bzr, make, ttf-wqy-microhei, ttf-freefont, mendexk, texlive-latex-extra, texlive-fonts-recommended, texlive-latex-recommended, texlive-xetex, ttf-indic-fonts-core, texlive-lang-all, python-pybabel, imagemagick
Depends: ${misc:Depends}, python-sphinx, apache2, gettext, git-core, bzr, make, ttf-wqy-microhei, ttf-freefont, mendexk, texlive-latex-extra, texlive-fonts-recommended, texlive-latex-recommended, texlive-xetex, ttf-indic-fonts-core, texlive-lang-all, python-pybabel, imagemagick, python-virtualenv
Description: localised automated sphinx docs for Mahara
This package installs the automated localised sphinx docs for Mahara to the webroot
......@@ -17,6 +17,12 @@ echo ==================================== >> $LOGFILE
date '+%Y-%m-%d %H:%M:%S %Z' >> $LOGFILE
echo ==================================== >> $LOGFILE
if [ ! -d venv ]; then
echo "This needs to run in the Python virtual environment. See README.md for instructions."
exit 1
fi
. venv/bin/activate
git pull >> $LOGFILE
# Move old versions to the monthly cron in /etc/cron.monthly/
......
......@@ -18,6 +18,12 @@ echo Monthly run >> $LOGFILE
date '+%Y-%m-%d %H:%M:%S %Z' >> $LOGFILE
echo ==================================== >> $LOGFILE
if [ ! -d venv ]; then
echo "This needs to run in the Python virtual environment. See README.md for instructions."
exit 1
fi
. venv/bin/activate
git pull >> $LOGFILE
make -C $INSTALLDIR update html epub MAHARA=1.4 >> $LOGFILE 2>&1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment