Fix some env variables and add LUKS and ecryptfs support
[fai-configs.git] / scripts / MEDIAWIKI / 10_download_mediawiki.sh
CommitLineData
5281d87b 1#! /bin/bash
2
3# Download mediawiki directly from their download source, as it is the recommended route and there is no repo
4if ! $ROOTCMD getent passwd mediawiki ; then
5 $ROOTCMD adduser --system --ingroup www-data --disabled-password --gecos "mediawiki user" mediawiki
6fi
7
8if ! $ROOTCMD test -e /home/mediawiki/.ssh/id_rsa; then
9 $ROOTCMD echo | $ROOTCMD sudo -u mediawiki ssh-keygen -N ''
10fi
11
12if ! $ROOTCMD echo | cd /home/mediawiki/
13 $HOME && wget https://releases.wikimedia.org/mediawiki/1.25/mediawiki-1.25.1.tar.gz; then
14 tar -xvzf $HOME\mediawiki-1.25.1.tar.gz
15 mv mediawiki-*/* /var/www/html
16fi
17
18
19