commit 3a29e1e5d9694708180d75822aa1bd357f64bf8e Author: Esteban Cavielles Date: Tue Mar 23 11:27:37 2021 +0100 ajout dokuauto diff --git a/dokuauto b/dokuauto new file mode 100755 index 0000000..e6f5c79 --- /dev/null +++ b/dokuauto @@ -0,0 +1,19 @@ +#!/bin/bash +dkroot=/var/www/html/doku +apt install -y apache2 php php-gd php-mbstring php-mysql php-xml +cd /tmp +[ -r dokuwiki-stable.tgz ] || wget http://depl/store/dokuwiki-stable.tgz +if [ $? != 0 ]; then + echo "$0 : erreur wget" 1>&2 + exit 1 +fi +tar xfz dokuwiki-stable.tgz +[ -d "${dkroot}" ] || mkdir "${dkroot}" + +cp -a dokuwiki-2020-07-29/* "${dkroot}" +cd "${dkroot}" +chown -R root:root . +chmod -R 755 . +chown -R www-data:www-data data lib conf +exit 0 +