1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pepettes_ynh.git synced 2024-09-03 19:56:35 +02:00

[fix] prices config

This commit is contained in:
ljf 2021-02-20 21:13:33 +01:00
parent f8afb2a937
commit d2edbdc428

View file

@ -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