1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00

Changes to be committed:

modified:   scripts/install
This commit is contained in:
Developpeur Egare 2015-05-30 09:24:35 +02:00
parent 5992ca9cac
commit 0e4c539739

View file

@ -5,6 +5,8 @@ domain=$1
user=$2
is_public=$3
versionname=$(lsb_release -a | grep Codename | awk -F' ' '{print $2}')
# Check user parameter
sudo yunohost user list --json | grep -q "\"username\": \"$user\""
if [[ ! $? -eq 0 ]]; then
@ -35,7 +37,9 @@ sudo apt-get update
sudo apt-get install gawk libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake bison libffi-dev\
build-essential libssl-dev libcurl4-openssl-dev libxml2-dev libxslt-dev imagemagick ghostscript git curl libmysqlclient-dev\
libmagickwand-dev nodejs-legacy npm -y
sudo apt-get install -t wheezy-backports redis-server -y
[ "$versionname" == "wheezy" ] && sudo apt-get install -t wheezy-backports redis-server -y
[ "$versionname" != "wheezy" ] && sudo apt-get install redis-server -y
# get source code
git clone -b master git://github.com/diaspora/diaspora.git
@ -78,7 +82,9 @@ sudo su - diaspora -c "curl -sSL https://rvm.io/mpapis.asc | gpg --import - ; cu
sudo su - diaspora -c "rvm install 2.0"
sudo env REALLY_GEM_UPDATE_SYSTEM=1 gem update --system --no-user-install
#sudo env REALLY_GEM_UPDATE_SYSTEM=1 gem update --system --no-user-install
sudo su - diaspora -c "env REALLY_GEM_UPDATE_SYSTEM=1 gem update --system --no-user-install"
sudo su - diaspora -c "gem install bundler"
# construct diaspora app
sudo su - diaspora -c "RAILS_ENV=production bundle install --without test development"