From abc67b0e495a1ef098400c5c862e8013cc8b0a72 Mon Sep 17 00:00:00 2001 From: Kload Date: Thu, 8 May 2014 10:18:45 +0200 Subject: [PATCH] [fix] Update APT repo before dependency installation + copy directories --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 2d92ea4..91591d3 100644 --- a/scripts/install +++ b/scripts/install @@ -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