20 lines
457 B
Bash
Executable File
20 lines
457 B
Bash
Executable File
#!/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
|
|
|