add wheezy-backports repository during the installation process
add php packages to avoid using composer for installing aws-php-sdk and php-doctrine-cache
This commit is contained in:
@@ -12,11 +12,15 @@ echo "######################################################"
|
|||||||
|
|
||||||
echo "install required packages"
|
echo "install required packages"
|
||||||
|
|
||||||
|
echo "add debian wheezy repository"
|
||||||
|
sed -i '$s,$,\ndeb http://http.debian.net/debian wheezy-backports main,' /etc/apt/sources.list
|
||||||
|
|
||||||
echo "update package cache"
|
echo "update package cache"
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
echo "dependencies for dataserver"
|
echo "dependencies for dataserver"
|
||||||
apt-get install -y apache2 libapache2-mod-php5 mysql-server memcached zendframework php5-cli php5-memcache php5-mysql php5-curl php5-memcached
|
apt-get install -y apache2 libapache2-mod-php5 mysql-server memcached zendframework php5-cli php5-memcache php5-mysql php5-curl php5-memcached
|
||||||
|
apt-get -t wheezy-backports install -y php-aws-sdk php-doctrine-cache
|
||||||
|
|
||||||
echo "general dependencies"
|
echo "general dependencies"
|
||||||
apt-get install -y git gnutls-bin runit libapache2-modsecurity curl
|
apt-get install -y git gnutls-bin runit libapache2-modsecurity curl
|
||||||
@@ -43,15 +47,8 @@ git checkout fc607170ab2ca751097648d48a5d38e15e9d5f6a
|
|||||||
echo "install add_user script"
|
echo "install add_user script"
|
||||||
cp add_user /srv/zotero/dataserver/admin
|
cp add_user /srv/zotero/dataserver/admin
|
||||||
|
|
||||||
echo "install composer"
|
echo "patch master.sql"
|
||||||
cd /srv/zotero/dataserver
|
cp master.sql /srv/zotero/dataserver/misc
|
||||||
curl -sS https://getcomposer.org/installer | php
|
|
||||||
|
|
||||||
echo "install dependencies"
|
|
||||||
php composer.phar install
|
|
||||||
|
|
||||||
echo "remove composer"
|
|
||||||
rm composer.phar
|
|
||||||
|
|
||||||
echo "prepare directory rights"
|
echo "prepare directory rights"
|
||||||
chown www-data:www-data /srv/zotero/dataserver/tmp
|
chown www-data:www-data /srv/zotero/dataserver/tmp
|
||||||
|
Reference in New Issue
Block a user