ajout dokuwiki
This commit is contained in:
parent
68529e6e50
commit
bd51f01102
21
inst-dokuwiki
Executable file
21
inst-dokuwiki
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
chemin=/var/www/html/doku
|
||||||
|
#on crée une variable pour simplifier le chemin
|
||||||
|
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 dokuwiki est déja installé, sinon on le télécharge
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
echo "$0 : erreurwget" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
tar xvfz dokuwiki-stable.tgz
|
||||||
|
[ -d "${chemin}" ] || mkdir "${chemin}"
|
||||||
|
#on va dans /var/www/html/doku si il est créé sinon on le créer
|
||||||
|
|
||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user