Install as mediagoblin user

This commit is contained in:
Bob Mottram 2016-03-31 19:44:25 +01:00
parent f0476d31c4
commit 0c94e37ed1
1 changed files with 94 additions and 90 deletions

View File

@ -9571,7 +9571,8 @@ function install_mediagoblin {
return return
fi fi
apt-get -y install git-core python python-dev python-lxml python-imaging python-virtualenv npm nodejs-legacy automake apt-get -y install git-core python python3-dev python3-lxml python3-pil
apt-get -y install python3-virtualenv npm nodejs-legacy automake
#apt-get -y install postgresql postgresql-client python-psycopg2 #apt-get -y install postgresql postgresql-client python-psycopg2
#apt-get -y install python-gst-1.0 libjpeg62-turbo-dev gstreamer1.0-plugins-base python-gobject #apt-get -y install python-gst-1.0 libjpeg62-turbo-dev gstreamer1.0-plugins-base python-gobject
@ -9592,6 +9593,8 @@ function install_mediagoblin {
git_clone $MEDIAGOBLIN_REPO $MEDIAGOBLIN_WORKING_DIRECTORY git_clone $MEDIAGOBLIN_REPO $MEDIAGOBLIN_WORKING_DIRECTORY
cd $MEDIAGOBLIN_WORKING_DIRECTORY cd $MEDIAGOBLIN_WORKING_DIRECTORY
git checkout $MEDIAGOBLIN_COMMIT -b $MEDIAGOBLIN_COMMIT git checkout $MEDIAGOBLIN_COMMIT -b $MEDIAGOBLIN_COMMIT
git submodule init
git submodule update
if ! grep -q "Mediagoblin commit" $COMPLETION_FILE; then if ! grep -q "Mediagoblin commit" $COMPLETION_FILE; then
echo "Mediagoblin commit:$MEDIAGOBLIN_COMMIT" >> $COMPLETION_FILE echo "Mediagoblin commit:$MEDIAGOBLIN_COMMIT" >> $COMPLETION_FILE
@ -9599,17 +9602,18 @@ function install_mediagoblin {
sed -i "s/Mediagoblin commit.*/Mediagoblin commit:$MEDIAGOBLIN_COMMIT/g" $COMPLETION_FILE sed -i "s/Mediagoblin commit.*/Mediagoblin commit:$MEDIAGOBLIN_COMMIT/g" $COMPLETION_FILE
fi fi
./bootstrap.sh chown -hR mediagoblin:www-data $MEDIAGOBLIN_WORKING_DIRECTORY
su -c "cd $MEDIAGOBLIN_WORKING_DIRECTORY && ./bootstrap.sh" - mediagoblin
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
exit 278826 exit 278826
fi fi
./configure --with-python3 --without-virtualenv su -c "cd $MEDIAGOBLIN_WORKING_DIRECTORY && ./configure --with-python3" - mediagoblin
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
exit 462826 exit 462826
fi fi
make su -c "cd $MEDIAGOBLIN_WORKING_DIRECTORY && make" - mediagoblin
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
exit 738229 exit 738229
fi fi