Make p/api/ also writeable for extensions

This commit is contained in:
Johannes Zellner 2020-06-02 11:32:18 +02:00
parent a53767f937
commit 6e8bd967e8
2 changed files with 9 additions and 2 deletions

View File

@ -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/*

View File

@ -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}" \