diff --git a/SDIS29/goss.yaml b/SDIS29/ap34prod/goss.yaml similarity index 100% rename from SDIS29/goss.yaml rename to SDIS29/ap34prod/goss.yaml diff --git a/SDIS29/ap34wiki/script-dokuwiki b/SDIS29/ap34wiki/script-dokuwiki new file mode 100755 index 0000000..c3382cb --- /dev/null +++ b/SDIS29/ap34wiki/script-dokuwiki @@ -0,0 +1,22 @@ +#!/bin/bash +chemin=/var/www/html/doku #on definit le chemin. + +apt install -y apache2 php php-mbstring php-gd php-xml #installation des paquets et dependances. + +cd /root #on se deplace dans root +[ -r dokuwiki-stable.tgz ] || wget http://depl/store/dokuwiki-stable.tgz #on verifie si le dokuwiki est installe, sinon, on le telecharge. + +if [ $? !=0 ]; then + echo "$0 : erreurwget" 1>&2 #si le telechargement echoue, on renvoit une erreur. + exit 1 +fi + +tar xvfz dokuwiki-stable.tgz #on decompresse l'archive. +[ -d "${chemin}" ] || mkdir "${chemin}" #on creee le repertoire si il n'existe pas. + +cp -a dokuwiki-2020-07-29/* "${chemin}" #on copie le dossier d'installation dans le repertoir definit plus tot. +cd "${chemin}" #on se place dans le repertoire. +chown -R root:root . #on definit les permissions root. +chmod -R 755 . #on definit les permissions dans toute l'arborescence. +chown -R www-data:www-data data lib conf . #On accorde les permissions a php. +exit 0