mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
Fix python3.5 not existing
This commit is contained in:
parent
4214a1391c
commit
c40fc21709
3 changed files with 6 additions and 3 deletions
|
@ -85,7 +85,8 @@ fi
|
|||
#=================================================
|
||||
# Edit specific content from nginx configuration
|
||||
#=================================================
|
||||
settings="$final_path/venv/lib/python3.5/site-packages/weblate/settings.py"
|
||||
python_version=$(ls -1 $final_path/venv/lib | grep python)
|
||||
settings="$final_path/venv/lib/$python_version/site-packages/weblate/settings.py"
|
||||
|
||||
if [ "$old_path" == "/" ] && [ "$new_path" != "/" ]
|
||||
then
|
||||
|
|
|
@ -207,7 +207,8 @@ admin_mail=$(ynh_user_get_info "$admin" mail)
|
|||
key=$(ynh_string_random 24)$(ynh_string_random 24)$(ynh_string_random 2)
|
||||
redis_db=$(ynh_redis_get_free_db)
|
||||
|
||||
settings="$final_path/venv/lib/python3.5/site-packages/weblate/settings.py"
|
||||
python_version=$(ls -1 $final_path/venv/lib | grep python)
|
||||
settings="$final_path/venv/lib/$python_version/site-packages/weblate/settings.py"
|
||||
cp "../conf/settings_history/settings.$current_version.py" "$settings"
|
||||
|
||||
weblate_fill_settings "$settings"
|
||||
|
|
|
@ -190,7 +190,8 @@ ynh_script_progression --message="Install weblate using PIP..." --time --weight=
|
|||
#=================================================
|
||||
ynh_script_progression --message="Create weblate configuration file..." --time --weight=1
|
||||
# save old settings file
|
||||
settings="$final_path/venv/lib/python3.5/site-packages/weblate/settings.py"
|
||||
python_version=$(ls -1 $final_path/venv/lib | grep python)
|
||||
settings="$final_path/venv/lib/$python_version/site-packages/weblate/settings.py"
|
||||
|
||||
old_settings="$final_path/settings.$previous_version.old.py"
|
||||
|
||||
|
|
Loading…
Reference in a new issue