1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

[bug] unable to change the date formats using the setup script

This commit is contained in:
Sylvain 2020-10-13 11:14:52 +02:00
parent 585f01b671
commit 48cae3a1a1
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
- Migrated the assets build pipeline from Sprockets to Webpack
- Version check during the upgrade
- Fix a bug: changing the date of a training session does not prevent the selection of a different type of training
- Fix a bug: unable to change the date formats using the setup script
- Updated summernote to 0.8.18
- Updated angular-summernote to 0.8.1
- Updated FontAwesome from v4 to v5

View File

@ -249,7 +249,8 @@ configure_env_file()
read -rp " > " value </dev/tty
echo "======================="
if [ "$value" != "" ]; then
sed -i.bak "s/$current/$variable=$value/g" "$FABMANAGER_PATH/config/env"
escaped=$(printf '%s\n' "$value" | sed -e 's/[\/&]/\\&/g')
sed -i.bak "s/$current/$variable=$escaped/g" "$FABMANAGER_PATH/config/env"
fi
done
# we automatically generate the SECRET_KEY_BASE