Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ WORKDIR /tmp
RUN curl -o bludit.zip ${bludit_url} && \
unzip bludit.zip && \
rm -rf /usr/share/nginx/html && \
mv bludit /usr/share/nginx/html && \
cp -R bludit /usr/share/nginx/html && \
chown -R www-data:www-data /usr/share/nginx/html && \
chmod -R 755 /usr/share/nginx/html && \
sed -i "s/'DEBUG_MODE', FALSE/'DEBUG_MODE', TRUE/g" /usr/share/nginx/html/bl-kernel/boot/init.php && \
Expand Down
4 changes: 2 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ plugin_dir=/usr/share/nginx/html/bl-plugins
if [ -z "$(ls -A $theme_dir)" ]; then
echo "bl-themes directory is empty, initializing..."
cp -r /tmp/bludit/bl-themes/* $theme_dir
chown -R nginx. $theme_dir
chown -R www-data. $theme_dir
else
echo "bl-themes directory is not empty, skipping..."
fi

if [ -z "$(ls -A $plugin_dir)" ]; then
echo "bl-plugins directory is empty, initializing..."
cp -r /tmp/bludit/bl-plugins/* $plugin_dir
chown -R nginx. $plugin_dir
chown -R www-data. $plugin_dir
else
echo "bl-plugins directory is not empty, skipping..."
fi
Expand Down