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

Copy instead of mv.

parent ce0c467b
No related branches found
No related tags found
No related merge requests found
data
...@@ -3,10 +3,13 @@ MAINTAINER Kamil Manka <kamil.manka@seamless.se> ...@@ -3,10 +3,13 @@ MAINTAINER Kamil Manka <kamil.manka@seamless.se>
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install unzip curl RUN DEBIAN_FRONTEND=noninteractive apt-get -y install unzip curl
ADD get_prestashop.sh /get_prestashop.sh ADD run.sh /run.sh
RUN chmod +x /get_prestashop.sh RUN chmod +x /run.sh
RUN mkdir -p /var/www/html RUN mkdir -p /var/www/html
# SEQR plugin directory
RUN mkdir -p /var/www/html/modules/seqr
# apache config # apache config
ENV APACHE_RUN_USER www-data ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data ENV APACHE_RUN_GROUP www-data
...@@ -14,4 +17,4 @@ RUN chown -R www-data:www-data /var/www/ ...@@ -14,4 +17,4 @@ RUN chown -R www-data:www-data /var/www/
VOLUME /var/www/html VOLUME /var/www/html
CMD ["/get_prestashop.sh"] CMD ["/run.sh"]
#!/bin/bash #!/bin/bash
curl -s -o /tmp/temp "https://www.prestashop.com/download/old/prestashop_$PS_VERSION.zip" curl -s -o /tmp/temp "https://www.prestashop.com/download/old/prestashop_$PS_VERSION.zip"
unzip -q /tmp/temp -d /var/www/html unzip -q /tmp/temp -d /tmp
mv /var/www/html/prestashop/* /var/www/html cp -rf /tmp/prestashop/* /var/www/html
rm -rf /var/www/html/prestashop rm -rf /tmp/*
rm /tmp/temp chown -R www-data:www-data /var/www
chown -R www-data:www-data /var/www\
while true; do true; done while true; do true; done;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment