1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snipeit_ynh.git synced 2024-09-03 20:26:16 +02:00
This commit is contained in:
ericgaspar 2020-10-19 10:50:50 +02:00
parent f6a12ece8e
commit bd16c17b49
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 7 additions and 9 deletions

View file

@ -80,7 +80,7 @@ ynh_setup_source --dest_dir="$final_path"
ynh_script_progression --message="Configuring NGINX web server..." --weight=5 ynh_script_progression --message="Configuring NGINX web server..." --weight=5
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config YNH_PHP_VERSION ynh_add_nginx_config
#================================================= #=================================================
# CREATE DEDICATED USER # CREATE DEDICATED USER
@ -118,13 +118,11 @@ email=$(ynh_user_get_info $admin 'mail')
# setup application config # setup application config
cp ../conf/.env $final_path/.env cp ../conf/.env $final_path/.env
db_name=$(ynh_sanitize_dbid $app) ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/.env"
ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --target_file="$final_path/.env"
ynh_replace_string "__DB_NAME__" "$db_name" "$final_path/.env" ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_name" --target_file="$final_path/.env"
ynh_replace_string "__DB_PASS__" "$db_pwd" "$final_path/.env" ynh_replace_string --match_string="yunodomain" --replace_string="$domain" --target_file="$final_path/.env"
ynh_replace_string "__DB_USER__" "$db_name" "$final_path/.env" ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/.env"
ynh_replace_string "yunodomain" "$domain" "$final_path/.env"
ynh_replace_string "__LANGUAGE__" "$language" "$final_path/.env"
# setup application config # setup application config
( cd $final_path && php$YNH_PHP_VERSION artisan key:generate -n --force --env) ( cd $final_path && php$YNH_PHP_VERSION artisan key:generate -n --force --env)

View file

@ -87,7 +87,7 @@ fi
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Upgrading NGINS web server configuration..." --weight=3 ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=3
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config