Skip to content

Commit

Permalink
feat: few changes in create-site
Browse files Browse the repository at this point in the history
  • Loading branch information
kemboi22 committed Aug 11, 2024
1 parent 78fbe7f commit 414a7a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imageroot/bin/create-site
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
echo "sites/common_site_config.json found";
bench new-site frontend --no-mariadb-socket --admin-password=admin --db-root-password="$MARIADB_ROOT_PASSWORD" --install-app erpnext --set-default;
# Convert the JSON-like string to a bash array
ERP_NEXT_MODULES=$(echo "$ERPNEXT_MODULES" | tr -d '[]' | tr -d '"' | tr -d ' ')
IFS=',' read -r -a ERP_NEXT_MODULES_ARRAY <<< "$ERP_NEXT_MODULES"
ERPNEXT_MODULES=$(echo "$ERP_NEXT_MODULES" | tr -d '[]' | tr -d '"' | tr -d ' ')
IFS=',' read -r -a ERP_NEXT_MODULES_ARRAY <<< "$ERPNEXT_MODULES"
# Iterate over the array
for module in "${ERP_NEXT_MODULES_ARRAY[@]}"; do
echo "Processing $module"
Expand Down

0 comments on commit 414a7a6

Please sign in to comment.