From ffed310d275f9aadb83d2dc5df1015d4dfad87d2 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sun, 25 Dec 2022 17:11:04 +0100 Subject: [PATCH] add dotclear --- seed/dotclear/dictionaries/40_dotclear.xml | 26 +++++ .../manual/image/postinstall/dotclear.sh | 16 +++ .../manual/image/preinstall/dotclear.sh | 1 + seed/dotclear/templates/config.php | 108 ++++++++++++++++++ seed/dotclear/templates/dotclear.nginx.conf | 34 ++++++ seed/dotclear/templates/dotclear.service | 18 +++ seed/dotclear/templates/tmpfile-dotclear.conf | 4 + 7 files changed, 207 insertions(+) create mode 100644 seed/dotclear/dictionaries/40_dotclear.xml create mode 100644 seed/dotclear/manual/image/postinstall/dotclear.sh create mode 100644 seed/dotclear/manual/image/preinstall/dotclear.sh create mode 100644 seed/dotclear/templates/config.php create mode 100644 seed/dotclear/templates/dotclear.nginx.conf create mode 100644 seed/dotclear/templates/dotclear.service create mode 100644 seed/dotclear/templates/tmpfile-dotclear.conf diff --git a/seed/dotclear/dictionaries/40_dotclear.xml b/seed/dotclear/dictionaries/40_dotclear.xml new file mode 100644 index 00000000..924fc9b4 --- /dev/null +++ b/seed/dotclear/dictionaries/40_dotclear.xml @@ -0,0 +1,26 @@ + + + + + /etc/dotclear/config.php + /etc/nginx/default.d/dotclear.conf + /tmpfiles.d/0dotclear.conf + + + + + + + + + + domain_name_eth0 + secret_key + dotclear + cleartext + hide_secret + dotclear_secret_key + + + diff --git a/seed/dotclear/manual/image/postinstall/dotclear.sh b/seed/dotclear/manual/image/postinstall/dotclear.sh new file mode 100644 index 00000000..3beb06fd --- /dev/null +++ b/seed/dotclear/manual/image/postinstall/dotclear.sh @@ -0,0 +1,16 @@ +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 diff --git a/seed/dotclear/manual/image/preinstall/dotclear.sh b/seed/dotclear/manual/image/preinstall/dotclear.sh new file mode 100644 index 00000000..c29a6cdc --- /dev/null +++ b/seed/dotclear/manual/image/preinstall/dotclear.sh @@ -0,0 +1 @@ +PKG="$PKG php-pgsql php-mbstring php-xml" diff --git a/seed/dotclear/templates/config.php b/seed/dotclear/templates/config.php new file mode 100644 index 00000000..1380766a --- /dev/null +++ b/seed/dotclear/templates/config.php @@ -0,0 +1,108 @@ +GNUNUX +//define('DC_TPL_CACHE', path::real(__DIR__ . '/..') . '/cache'); +define('DC_TPL_CACHE', '/srv/dotclear/cache'); +//GNUNUX +define('DC_NOT_UPDATE', false); +//GNUNUX +define('DC_REVERSE_PROXY',true); +//