Skip to content

Commit

Permalink
fix: fix installation order
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Sep 20, 2024
1 parent 7963790 commit 7ca5b81
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions images/prestashop/scripts/_install-prestashop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,21 @@ install-prestashop() {
fi

touch install.lock
start=$(date +%s)

if [ "$PS_FOLDER_ADMIN" != "admin" ] && [ -d "${ROOT_DIR}/admin" ]; then
h2 "Renaming admin folder to $PS_FOLDER_ADMIN...";
sudo -u www-data -s mv "${ROOT_DIR}/admin" "${ROOT_DIR}/$PS_FOLDER_ADMIN/"
fi

reset-permissions
h2 "Installing dependencies..."
composer install --no-plugins --no-interaction

h2 "Installing PrestaShop, this can take +/- 1 minute..."
start=$(date +%s)
build-themes

composer install --no-plugins --no-interaction
reset-permissions

h2 "Running PrestaShop installation script..."

sudo -u www-data -s php install-dev/index_cli.php \
--all_languages="$PS_ALL_LANGUAGES" \
Expand Down Expand Up @@ -60,13 +63,11 @@ install-prestashop() {
exit 1
fi

build-themes

reset-permissions

end=$(date +%s)
runtime=$((end-start))

h2 "PrestaShop installation succeeded in $runtime seconds."
rm install.lock

reset-permissions
}

0 comments on commit 7ca5b81

Please sign in to comment.