1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mediawiki_ynh.git synced 2024-09-03 19:46:05 +02:00

[fix] Update APT repo before dependency installation + copy directories

This commit is contained in:
Kload 2014-05-08 10:18:45 +02:00
parent 118b88a92d
commit a26ce445d2

View file

@ -18,6 +18,7 @@ db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]'
db_user=mediawiki db_user=mediawiki
# Instal php5-cli dependency # Instal php5-cli dependency
sudo apt-get update
sudo apt-get install php5-cli -y sudo apt-get install php5-cli -y
# Initialize database and store mysql password for upgrade # Initialize database and store mysql password for upgrade
@ -27,7 +28,7 @@ sudo yunohost app setting mediawiki mysqlpwd -v $db_pwd
# Copy files to the right place # Copy files to the right place
final_path=/var/www/mediawiki final_path=/var/www/mediawiki
sudo mkdir -p $final_path sudo mkdir -p $final_path
sudo cp ../sources/mediawiki/* $final_path sudo cp -r ../sources/mediawiki/* $final_path
sudo cp ../conf/LocalSettings.php $final_path/ sudo cp ../conf/LocalSettings.php $final_path/
# LDAP Extension # LDAP Extension