git subrepo clone https://github.com/silvio/hubzilla-docker.git forks/hubzilla-docker

subrepo:
  subdir:   "forks/hubzilla-docker"
  merged:   "74df054"
upstream:
  origin:   "https://github.com/silvio/hubzilla-docker.git"
  branch:   "master"
  commit:   "74df054"
git-subrepo:
  version:  "0.3.1"
  origin:   "???"
  commit:   "???"
diff --git a/forks/hubzilla-docker/addons/start.sh b/forks/hubzilla-docker/addons/start.sh
new file mode 100644
index 0000000..086c932
--- /dev/null
+++ b/forks/hubzilla-docker/addons/start.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+[ ! -e /data/htconfig.php ] && touch /data/htconfig.php
+ln -sf /data/htconfig.php /hubzilla/.htconfig.php
+chmod -R 0777 /data/htconfig.php
+
+if [ ! -e /data/store ]; then
+        mkdir /data/store
+        ln -sf /data/store /hubzilla/store
+        mkdir -p '/data/store/[data]/smarty3'
+        chmod -R 0777 /data/store
+else
+        sed -i "s/###HUBZILLAINTERVAL###/${HUBZILLAINTERVAL}/" /hubzilla-cron.txt
+        crontab /hubzilla-cron.txt
+fi
+
+
+
+sed -i "s/###SERVERNAME###/${SERVERNAME}/" /etc/nginx/conf.d/default.conf
+
+nginx
+php-fpm
+
+tail -F /var/log/*.log /var/log/nginx/*.log