From 6e8bd967e80d2c63b37ce7caed090de84e50d2a4 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 2 Jun 2020 11:32:18 +0200 Subject: [PATCH] Make p/api/ also writeable for extensions --- Dockerfile | 4 ++-- start.sh | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d2c1757..921e178 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,8 @@ RUN mv data data-orig && ln -s /app/data data # official extensions RUN wget https://github.com/FreshRSS/Extensions/archive/de83a1096c10644098291539cabfbecd38d5a28f.tar.gz -O - | tar -xz --strip-components=1 -C /app/code/extensions && \ - mv /app/code/extensions /app/code/extensions-orig && \ - ln -s /app/data/extensions /app/code/extensions + mv /app/code/p/api /app/code/p-api-orig && ln -s /app/data/p-api /app/code/p/api && \ + mv /app/code/extensions /app/code/extensions-orig && ln -s /app/data/extensions /app/code/extensions # configure apache RUN rm /etc/apache2/sites-enabled/* diff --git a/start.sh b/start.sh index dbd2766..be15e80 100755 --- a/start.sh +++ b/start.sh @@ -31,6 +31,13 @@ for f in $(ls /app/code/extensions-orig); do cp -r "/app/code/extensions-orig/$f" "/app/data/extensions" done +echo "==> Copying extension p/api folder" +mkdir -p /app/data/p-api +for f in $(ls /app/code/p-api-orig); do + rm -rf "/app/data/p-api/$f" + cp -r "/app/code/p-api-orig/$f" "/app/data/p-api" +done + echo "==> Updating config file" php cli/reconfigure.php --default_user admin --base_url "https://${CLOUDRON_APP_DOMAIN}" \ --db-type mysql --db-host "${CLOUDRON_MYSQL_HOST}" \