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:
parent
118b88a92d
commit
a26ce445d2
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
# Instal php5-cli dependency
|
||||
sudo apt-get update
|
||||
sudo apt-get install php5-cli -y
|
||||
|
||||
# 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
|
||||
final_path=/var/www/mediawiki
|
||||
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/
|
||||
|
||||
# LDAP Extension
|
||||
|
|
Loading…
Reference in a new issue