mirror of
https://github.com/YunoHost-Apps/pgadmin_ynh.git
synced 2024-09-03 19:56:38 +02:00
fix uwsgi
This commit is contained in:
parent
0ac8cbb574
commit
295864a24d
2 changed files with 7 additions and 7 deletions
|
@ -43,7 +43,7 @@ EOF
|
||||||
#
|
#
|
||||||
# __APP__ by $app
|
# __APP__ by $app
|
||||||
# __PATH__ by $path_url
|
# __PATH__ by $path_url
|
||||||
# __FINALPATH__ by $final_path
|
# __FINALPATH__ by $install_dir
|
||||||
#
|
#
|
||||||
# And dynamic variables (from the last example) :
|
# And dynamic variables (from the last example) :
|
||||||
# __PATH_2__ by $path_2
|
# __PATH_2__ by $path_2
|
||||||
|
@ -73,8 +73,8 @@ ynh_add_uwsgi_service () {
|
||||||
|
|
||||||
# To avoid a break by set -u, use a void substitution ${var:-}. If the variable is not set, it's simply set with an empty variable.
|
# To avoid a break by set -u, use a void substitution ${var:-}. If the variable is not set, it's simply set with an empty variable.
|
||||||
# Substitute in a nginx config file only if the variable is not empty
|
# Substitute in a nginx config file only if the variable is not empty
|
||||||
if test -n "${final_path:-}"; then
|
if test -n "${install_dir:-}"; then
|
||||||
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$finaluwsgiini"
|
ynh_replace_string --match_string="__INSTALL_DIR__" --replace_string="$install_dir" --target_file="$finaluwsgiini"
|
||||||
fi
|
fi
|
||||||
if test -n "${path_url:-}"; then
|
if test -n "${path_url:-}"; then
|
||||||
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$finaluwsgiini"
|
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$finaluwsgiini"
|
||||||
|
|
|
@ -34,7 +34,7 @@ ynh_script_progression --message="Configuring application..."
|
||||||
config_pgadmin
|
config_pgadmin
|
||||||
|
|
||||||
# Config uwsgi
|
# Config uwsgi
|
||||||
ynh_add_uwsgi_service
|
ynh_add_uwsgi_service "python_version"
|
||||||
|
|
||||||
ynh_script_progression --message="Configuring sqlite database..."
|
ynh_script_progression --message="Configuring sqlite database..."
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue