Tiny Tiny RSS for Docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 

19 lines
545 B

  1. #!/bin/bash
  2. if [ ! -f /var/www/config.php ]; then
  3. wget -q https://git.tt-rss.org/fox/tt-rss/archive/${TTRSS_VERSION}.tar.gz -O - | tar xzf - -C /var/www --strip-components=1
  4. fi
  5. chown -R www-data:www-data /var/www
  6. mkdir -pv /config/php/apache2.d
  7. find /config/php/apache2.d -type f | while read file; do
  8. ln -svf "${file}" "/etc/php/7.0/apache2/conf.d/$(basename "${file}")";
  9. done;
  10. sed -i "s/\/var\/www\/html/\/var\/www/g" /etc/apache2/sites-enabled/000-default.conf
  11. service ttrss start
  12. source /etc/apache2/envvars
  13. apache2ctl -D FOREGROUND