Skip to content
Snippets Groups Projects
Commit dd1702bc authored by Kamil Manka's avatar Kamil Manka
Browse files

Replacing CMD with ENTRYPOINT

parent bfe45ebf
No related branches found
No related tags found
No related merge requests found
...@@ -14,4 +14,4 @@ RUN chown -R www-data:www-data /var/www/ ...@@ -14,4 +14,4 @@ RUN chown -R www-data:www-data /var/www/
VOLUME /var/www/html VOLUME /var/www/html
CMD ["/run.sh"] ENTRYPOINT ["/run.sh"]
#!/bin/bash #!/bin/bash
if [ -z "$PS_VERSION"]; then if [ -z "$PS_VERSION" ]; then
echo "Prestashop version not found. Please set up PS_VERSION variable properly." echo "Prestashop version not found. Please set up PS_VERSION variable properly."
exit 1 exit 1
fi fi
...@@ -15,4 +15,8 @@ if [ -n "$PLUGIN_NAME" ]; then ...@@ -15,4 +15,8 @@ if [ -n "$PLUGIN_NAME" ]; then
chmod -Rf 777 /var/www/html/modules/$PLUGIN_NAME chmod -Rf 777 /var/www/html/modules/$PLUGIN_NAME
fi fi
exec /bin/true if [ -n "$1" ]; then
exec $1
elseif
exec /bin/true
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment