From d2edbdc42854283529961913624d2dda5784e093 Mon Sep 17 00:00:00 2001 From: ljf Date: Sat, 20 Feb 2021 21:13:33 +0100 Subject: [PATCH] [fix] prices config --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 97f9ce8..1e50915 100755 --- a/scripts/install +++ b/scripts/install @@ -152,8 +152,8 @@ ynh_store_file_checksum --file="$final_path/gunicorn.py" ynh_store_file_checksum --file="$final_path/settings.py" for price in $(echo $prices | sed "s/,/ /"); do frequency=$(echo $price | cut -d/ -f1) - currency=$(echo $price | cut -d/ -f1) - price_id=$(echo $price | cut -d/ -f1) + currency=$(echo $price | cut -d/ -f2) + price_id=$(echo $price | cut -d/ -f3) echo "DONATION['$frequency']['$currency'] = '$price_id'" >> "$final_path/settings.py" done