From 9f3d09245ab19446050cf3fdc618243a60d53c79 Mon Sep 17 00:00:00 2001 From: billt2006 Date: Wed, 12 Nov 2014 02:43:18 -0500 Subject: [PATCH] Fix in-place upgrading of TT-RSS --- Dockerfile | 4 ++-- configure-db.php | 2 +- supervisord.conf | 4 +++- ttrss.nginx.conf | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index bf93968..c14bb79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,8 @@ RUN ln -s /etc/nginx/sites-available/ttrss /etc/nginx/sites-enabled/ttrss RUN rm /etc/nginx/sites-enabled/default # install ttrss and patch configuration -RUN git clone https://github.com/gothfox/Tiny-Tiny-RSS.git /var/www -WORKDIR /var/www +RUN git clone https://github.com/gothfox/Tiny-Tiny-RSS.git /var/www/tt-rss +WORKDIR /var/www/tt-rss RUN cp config.php-dist config.php RUN sed -i -e "/'SELF_URL_PATH'/s/ '.*'/ 'http:\/\/localhost\/'/" config.php RUN chown www-data:www-data -R /var/www diff --git a/configure-db.php b/configure-db.php index 6025e30..66babbe 100644 --- a/configure-db.php +++ b/configure-db.php @@ -1,7 +1,7 @@ #!/usr/bin/env php