mirror of
https://github.com/YunoHost-Apps/mediawiki_ynh.git
synced 2024-09-03 19:46:05 +02:00
[fix] PHP5 CLI dependency + sources in the git repo
This commit is contained in:
parent
45f3eddba2
commit
118b88a92d
1 changed files with 6 additions and 11 deletions
|
@ -17,6 +17,9 @@ db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]'
|
|||
# Use 'mediawiki' as database name and user
|
||||
db_user=mediawiki
|
||||
|
||||
# Instal php5-cli dependency
|
||||
sudo apt-get install php5-cli -y
|
||||
|
||||
# Initialize database and store mysql password for upgrade
|
||||
sudo yunohost app initdb $db_user -p $db_pwd -s $(readlink -e ../conf/SQL/mysql.initial.sql)
|
||||
sudo yunohost app setting mediawiki mysqlpwd -v $db_pwd
|
||||
|
@ -24,19 +27,11 @@ sudo yunohost app setting mediawiki mysqlpwd -v $db_pwd
|
|||
# Copy files to the right place
|
||||
final_path=/var/www/mediawiki
|
||||
sudo mkdir -p $final_path
|
||||
sudo wget http://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.6.tar.gz
|
||||
sudo tar xvzf mediawiki-*.tar.gz
|
||||
sudo mv mediawiki-*/* $final_path
|
||||
sudo rm -R mediawiki-*
|
||||
sudo cp ../sources/mediawiki/* $final_path
|
||||
sudo cp ../conf/LocalSettings.php $final_path/
|
||||
|
||||
# LDAP Extension
|
||||
sudo wget https://codeload.github.com/wikimedia/mediawiki-extensions-LdapAuthentication/legacy.tar.gz/REL1_22
|
||||
sudo tar -xzf REL1_22
|
||||
sudo mkdir $final_path/extensions/LdapAuthentication
|
||||
sudo mv wikimedia-mediawiki-extensions-LdapAuthentication*/* $final_path/extensions/LdapAuthentication/
|
||||
sudo rm -R wikimedia-mediawiki-extensions-LdapAuthentication*
|
||||
sudo rm REL1_22
|
||||
sudo cp -r ../sources/LdapAuthentication $final_path/extensions/
|
||||
|
||||
# Change variables in Mediawiki configuration
|
||||
sudo sed -i "s/ynh_wiki_name/$wiki_name/g" $final_path/LocalSettings.php
|
||||
|
|
Loading…
Reference in a new issue