mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
Allow running upgrade scripts from dev ranch
This commit is contained in:
parent
c7a8668fd6
commit
cd7ef8ddd2
@ -2,6 +2,7 @@
|
||||
|
||||
- Reduced down time during upgrades
|
||||
- Architecture changes to allow including React.js components into the application
|
||||
- Allow running upgrade scripts from dev ranch
|
||||
- Fix a bug: script mount-webpack.sh was not updating the docker-compose.yml file
|
||||
- Fix a security issue: updated resolve-url-loader to 3.1.2 to fix [CVE-2020-15256](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15256)
|
||||
- Fix a security issue: updated selfsigned to 1.10.8 to fix [CVE-2020-7720](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7720)
|
||||
|
@ -125,11 +125,13 @@ upgrade()
|
||||
printf "An error occured, detected service name: %s\nExiting...", "$SERVICE"
|
||||
exit 1
|
||||
fi
|
||||
BRANCH='master'
|
||||
if yq r docker-compose.yml 'services.*(.==sleede/fab-manager*)' | grep -q ':dev'; then BRANCH='dev'; fi
|
||||
for SCRIPT in "${SCRIPTS[@]}"; do
|
||||
if [[ "$YES_ALL" = "true" ]]; then
|
||||
\curl -sSL "https://raw.githubusercontent.com/sleede/fab-manager/master/scripts/$SCRIPT.sh" | bash -s -- -y
|
||||
\curl -sSL "https://raw.githubusercontent.com/sleede/fab-manager/$BRANCH/scripts/$SCRIPT.sh" | bash -s -- -y
|
||||
else
|
||||
\curl -sSL "https://raw.githubusercontent.com/sleede/fab-manager/master/scripts/$SCRIPT.sh" | bash
|
||||
\curl -sSL "https://raw.githubusercontent.com/sleede/fab-manager/$BRANCH/scripts/$SCRIPT.sh" | bash
|
||||
fi
|
||||
done
|
||||
compile_assets_and_migrate
|
||||
|
Loading…
x
Reference in New Issue
Block a user