-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove unused action upgrade part
- Loading branch information
1 parent
c24e0cd
commit f77483b
Showing
1 changed file
with
3 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,5 @@ | ||
#!/bin/bash | ||
|
||
if [[ $CHANNEL == "local" ]]; then | ||
if [[ "${FROM:0:1}" == 1 ]] && [[ "${VERSION:0:1}" == 1 ]]; then | ||
if [[ "${FROM:2:1}" == "${VERSION:2:1}" ]]; then | ||
UPDATE_THEME=0 | ||
else | ||
UPDATE_THEME=1 | ||
fi | ||
else | ||
if [[ "${FROM:0:1}" == "${VERSION:0:1}" ]]; then | ||
UPDATE_THEME=0 | ||
else | ||
UPDATE_THEME=1 | ||
fi | ||
fi | ||
|
||
docker exec -u www-data prestashop_autoupgrade mkdir admin-dev/autoupgrade/download | ||
docker exec -u www-data prestashop_autoupgrade curl -L $ARCHIVE_URL -o admin-dev/autoupgrade/download/prestashop.zip | ||
docker exec -u www-data prestashop_autoupgrade curl -L $XML_URL -o modules/autoupgrade/download/prestashop.xml | ||
|
||
FILE_COUNT=$(docker exec -u www-data prestashop_autoupgrade ls admin-dev/autoupgrade/backup/ | wc -l) | ||
if [[ "$FILE_COUNT" == 0 ]]; then | ||
docker exec -u www-data prestashop_autoupgrade php modules/autoupgrade/bin/console backup:create admin-dev | ||
fi | ||
|
||
echo "{\"channel\":\"local\",\"archive_zip\":\"prestashop.zip\",\"archive_num\":\"${VERSION}\", \"archive_xml\":\"prestashop.xml\", \"PS_AUTOUP_CHANGE_DEFAULT_THEME\":${UPDATE_THEME}" > modules/autoupgrade/config.json | ||
docker exec -u www-data prestashop_autoupgrade php modules/autoupgrade/bin/console update:start --action="CompareReleases" --config-file-path="modules/autoupgrade/config.json" -vvv admin-dev | ||
docker exec -u www-data prestashop_autoupgrade php modules/autoupgrade/bin/console update:start --config-file-path="modules/autoupgrade/config.json" -vvv admin-dev | ||
fi | ||
|
||
docker exec -u www-data prestashop_autoupgrade php modules/autoupgrade/bin/console backup:create admin-dev -vvv | ||
docker exec -u www-data prestashop_autoupgrade php modules/autoupgrade/bin/console update:start --action="CompareReleases" -vvv admin-dev | ||
docker exec -u www-data prestashop_autoupgrade php modules/autoupgrade/bin/console update:start admin-dev -vvv | ||
docker exec -u www-data prestashop_autoupgrade php modules/autoupgrade/bin/console backup:create admin-dev | ||
docker exec -u www-data prestashop_autoupgrade php modules/autoupgrade/bin/console update:start --action="CompareReleases" admin-dev | ||
docker exec -u www-data prestashop_autoupgrade php modules/autoupgrade/bin/console update:start admin-dev |