dataset/seed/dotclear/manual/image/postinstall/dotclear.sh
2022-12-25 17:11:04 +01:00

16 lines
363 B
Bash

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