1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mygpo_ynh.git synced 2024-09-03 19:55:52 +02:00

fix env_path not existing

This commit is contained in:
Salamandar 2024-03-04 15:49:24 +01:00
parent 597aa7b03c
commit 6bec1a4878
4 changed files with 8 additions and 1 deletions

View file

@ -30,7 +30,6 @@ function set_up_virtualenv {
ynh_exec_warn_less ynh_exec_as "$app" "$install_dir/venv/bin/pip" --cache-dir "$install_dir/.cache/pip" install -U --requirement "$install_dir/source/requirements.txt"
ynh_exec_warn_less ynh_exec_as "$app" "$install_dir/venv/bin/pip" --cache-dir "$install_dir/.cache/pip" install -U --requirement "$install_dir/source/requirements-setup.txt"
ynh_exec_warn_less ynh_exec_as "$app" "$install_dir/venv/bin/pip" --cache-dir "$install_dir/.cache/pip" install -U --requirement "$install_dir/requirements-ynh.txt"
set_permissions
}
function initialize_db {

View file

@ -29,6 +29,7 @@ ynh_change_url_nginx_config
#=================================================
ynh_script_progression --message="Updating $app's configuration files..." --weight=1
mkdir -p "$env_path"
echo "$new_domain" > "$env_path/envs/prod/DEFAULT_BASE_URL"
echo "$app@$new_domain" > "$env_path/envs/prod/DEFAULT_FROM_EMAIL"
echo "$app@$new_domain" > "$env_path/envs/prod/SERVER_EMAIL"

View file

@ -30,6 +30,8 @@ ynh_setup_source --dest_dir="$install_dir/source"
#=================================================
ynh_script_progression --message="Adding $app's configuration files..." --weight=1
mkdir -p "$env_path"
echo "$admin <$admin_email>" > "$env_path/ADMINS"
echo "None" > "$env_path/BROKER_POOL_LIMIT"
echo "redis://localhost:6379" > "$env_path/BROKER_URL"
@ -61,6 +63,8 @@ ynh_psql_execute_as_root --sql="ALTER ROLE $db_user SET statement_timeout = 5000
initialize_db
set_permissions
#=================================================
# SYSTEM CONFIGURATION
#=================================================

View file

@ -46,6 +46,7 @@ ynh_setup_source --dest_dir="$install_dir/source" --full_replace=1
#=================================================
ynh_script_progression --message="Adding $app's configuration files..." --weight=1
mkdir -p "$env_path"
echo "$admin <$admin_email>" > "$env_path/ADMINS"
echo "None" > "$env_path/BROKER_POOL_LIMIT"
echo "redis://localhost:6379" > "$env_path/BROKER_URL"
@ -75,6 +76,8 @@ ynh_script_progression --message="Performing database migrations..." --weight=2
upgrade_db
set_permissions
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
#=================================================