1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

[bug] unable to set date formats during installation

This commit is contained in:
Sylvain 2021-04-14 11:37:42 +02:00
parent 4e512dda45
commit e7059cca5b
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@
## Next release
- Updated React and its dependencies to 17.0.3 and matching
- Fix a bug: unable to set date formats during installation
- [TODO DEPLOY] `rails fablab:stripe:set_gateway`
- [TODO DEPLOY] `rails fablab:maintenance:rebuild_stylesheet`

View File

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