From 0a01c528461084b3aa16d0aa69f8c5491cda7ce6 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 19 Oct 2021 06:57:18 +0000 Subject: [PATCH] script doku --- script-wiki/script-wikitp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 script-wiki/script-wikitp diff --git a/script-wiki/script-wikitp b/script-wiki/script-wikitp new file mode 100755 index 0000000..8ba23d7 --- /dev/null +++ b/script-wiki/script-wikitp @@ -0,0 +1,18 @@ +#!/bin/bash +chemin=/var/www/html/doku +apt install -y apache2 php php-mbstring php-gd php-xml +cd /root +[ -r dokuwiki-stable.gz ] || wget http://depl/store/dokuwiki-stable.tgz +if [ $? !=0 ]; then + echo "$0 : erreurwget" 1>&2 + exit 1 +fi +tar xvfz dokuwiki-stable.tgz +[ -d "${chemin}" ] || mkdir "${chemin}" + +cp -a dokuwiki-2020-07-29/* "${chemin}" +cd "${chemin}" +chown -R root:root . +chmod -R 755 . +chown -R www-data:www-data data lib conf . +exit 0