Piwigo 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.
 
 

24 lines
639 B

  1. #!/bin/bash
  2. for d in $(ls /template); do
  3. [ "$(ls -A /var/www/${d})" ] || cp -R /template/${d}/* /var/www/${d}/
  4. done
  5. mkdir -pv /config/php/apache2.d
  6. find /config/php/apache2.d -type f | while read file; do
  7. ln -svf "${file}" "/etc/php/7.0/apache2/conf.d/$(basename "${file}")";
  8. done;
  9. sed -i "s/\/var\/www\/html/\/var\/www/g" /etc/apache2/sites-enabled/000-default.conf
  10. chown -R www-data:www-data /var/www
  11. if [ ! -z "${PIWIGO_MYSQL_ENGINE}" ]; then
  12. grep -Rn MyISAM /var/www/install | cut -d: -f1 | sort -u | while read file; do
  13. sed -i 's/MyISAM/InnoDB/' "${file}";
  14. done;
  15. fi;
  16. source /etc/apache2/envvars
  17. apache2ctl -D FOREGROUND