From b4569ec7c4d72df2bf8d681f3979588d8aaa0578 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 19 Oct 2021 07:36:20 +0000 Subject: [PATCH] doku --- doku/inst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 doku/inst diff --git a/doku/inst b/doku/inst new file mode 100755 index 0000000..b66d449 --- /dev/null +++ b/doku/inst @@ -0,0 +1,20 @@ +#!/bin/bash +DEST=/var/www/html/doku +#creation chemin doku +apt install -y apache2 php php-mbstring php-gd php-xml +cd /root +[ -r dokuwiki-stable.tgz ] || wget http://depl/store/dokuwiki-stable.tgz +#on regarde si le dokuwiki est present, sinon on l'install +if [ $? != 0 ]; then + echo "$0 : erreurwget" 1>&2 + exit 1 +fi +tar xvfz dokuwiki-stable.tgz +[ -d "${DEST}" ] || mkdir "${DEST}" +#on regarde si le chemin DEST est creer, sinon on le fait +cp -a dokuwiki-2020-07-29/* "${DEST}" +cd "${DEST}" +chown -R root:root . +chmod -R 755 . +chown -R www-data:www-data data lib conf . +exit 0