Make p/api/ also writeable for extensions
This commit is contained in:
parent
a53767f937
commit
6e8bd967e8
|
@ -10,8 +10,8 @@ RUN mv data data-orig && ln -s /app/data data
|
||||||
|
|
||||||
# official extensions
|
# official extensions
|
||||||
RUN wget https://github.com/FreshRSS/Extensions/archive/de83a1096c10644098291539cabfbecd38d5a28f.tar.gz -O - | tar -xz --strip-components=1 -C /app/code/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 && \
|
mv /app/code/p/api /app/code/p-api-orig && ln -s /app/data/p-api /app/code/p/api && \
|
||||||
ln -s /app/data/extensions /app/code/extensions
|
mv /app/code/extensions /app/code/extensions-orig && ln -s /app/data/extensions /app/code/extensions
|
||||||
|
|
||||||
# configure apache
|
# configure apache
|
||||||
RUN rm /etc/apache2/sites-enabled/*
|
RUN rm /etc/apache2/sites-enabled/*
|
||||||
|
|
7
start.sh
7
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"
|
cp -r "/app/code/extensions-orig/$f" "/app/data/extensions"
|
||||||
done
|
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"
|
echo "==> Updating config file"
|
||||||
php cli/reconfigure.php --default_user admin --base_url "https://${CLOUDRON_APP_DOMAIN}" \
|
php cli/reconfigure.php --default_user admin --base_url "https://${CLOUDRON_APP_DOMAIN}" \
|
||||||
--db-type mysql --db-host "${CLOUDRON_MYSQL_HOST}" \
|
--db-type mysql --db-host "${CLOUDRON_MYSQL_HOST}" \
|
||||||
|
|
Loading…
Reference in New Issue