set -e

ORIPWD=$PWD
mkdir -p "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/usr/local/share"
cd "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/usr/local/share"
wget -q "https://download.dotclear.net/latest.tar.gz"
tar xf *tar.gz
rm -f *tar.gz
chown -R root: dotclear
cd dotclear
rmdir public
ln -s /srv/dotclear/public public
cd inc
ln -s /etc/dotclear/config.php config.php

cd $ORIPWD
