mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Explicit that we wanna run this python code in 2.7, otherwise if you're in a python3 venv it may not find the yaml module
This commit is contained in:
parent
101d3beebf
commit
67bb386c39
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ ynh_add_protected_uris() {
|
|||
#
|
||||
ynh_app_setting()
|
||||
{
|
||||
ACTION="$1" APP="$2" KEY="$3" VALUE="${4:-}" python - <<EOF
|
||||
ACTION="$1" APP="$2" KEY="$3" VALUE="${4:-}" python2.7 - <<EOF
|
||||
import os, yaml, sys
|
||||
app, action = os.environ['APP'], os.environ['ACTION'].lower()
|
||||
key, value = os.environ['KEY'], os.environ.get('VALUE', None)
|
||||
|
|
Loading…
Add table
Reference in a new issue