Commit dc2a46e4 authored by Cameron Carney's avatar Cameron Carney

changed storage creation

parent 7d624daa
......@@ -19,9 +19,10 @@ RUN \
&& tar --strip-components=1 -xzvf ${PANEL_VERSION}.tar.gz \
&& rm "${PANEL_VERSION}.tar.gz" \
&& chmod -R 755 storage/* bootstrap/cache \
&& find storage -type d > .storage.tmpl \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& composer install --ansi --no-dev \
&& mv ./storage storage.tmpl \
&& rm ./storage -rf \
&& chown nginx:nginx * -R
COPY ./manifest /
......
......@@ -8,7 +8,10 @@
function init {
# Create the storage/cache directories
if [ ! -d /data/storage ]; then
cp -pr storage.tmpl /data/storage
mkdir -p /data/storage
cat .storage.tmpl | while read line; do
mkdir -p "/data/${line}"
done
chown -R nginx:nginx /data/storage
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment