Skip to content

Commit

Permalink
Add more output when copying files from tmp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Feb 19, 2024
1 parent c1b5ab6 commit 6a14bc8
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 15 deletions.
5 changes: 4 additions & 1 deletion base/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/7.1-apache/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/7.1-fpm/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/7.2-apache/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/7.2-fpm/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/7.3-apache/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/7.3-fpm/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/7.4-apache/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/7.4-fpm/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/8.0-apache/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/8.0-fpm/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/8.1-apache/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/8.1-fpm/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/8.2-apache/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down
5 changes: 4 additions & 1 deletion base/images/8.2-fpm/config_files/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then

echo "\n* Reapplying PrestaShop files for enabled volumes ...";

if [ -d /tmp/data-ps ]; then
if [ -d /tmp/data-ps/prestashop ]; then
# init if empty
echo "\n* Copying files from tmp directory ...";
cp -n -R -T -p /tmp/data-ps/prestashop/ /var/www/html
else
echo "\n* No files to copy from tmp directory ...";
fi

if [ -f /tmp/defines_custom.inc.php ]; then
Expand Down

0 comments on commit 6a14bc8

Please sign in to comment.