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 configuration

This commit is contained in:
OniriCorpe 2024-05-23 00:16:31 +02:00
parent 500ba21fac
commit 48c118b505
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/gunicorn.py" --destination="$install_dir/gunicorn.py"
ynh_add_config --template="../conf/settings.py" --destination="$install_dir/settings.py"
for price in $(echo $prices | sed "s/,/ /"); do
for price in $(echo $prices | sed "s/,/ /g"); do
frequency=$(echo $price | cut -d/ -f1)
currency=$(echo $price | cut -d/ -f2)
price_id=$(echo $price | cut -d/ -f3)

View file

@ -71,7 +71,7 @@ ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="../conf/gunicorn.py" --destination="$install_dir/gunicorn.py"
ynh_add_config --template="../conf/settings.py" --destination="$install_dir/settings.py"
for price in $(echo $prices | sed "s/,/ /"); do
for price in $(echo $prices | sed "s/,/ /g"); do
frequency=$(echo $price | cut -d/ -f1)
currency=$(echo $price | cut -d/ -f2)
price_id=$(echo $price | cut -d/ -f3)