From 8e78dee025a5c462433c8da8a91218ea7eb079f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sun, 16 Apr 2023 10:28:04 +0200 Subject: [PATCH] Fixed missing param in change-url --- scripts/change_url | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index cddf3e8..8e3ce2c 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -109,6 +109,20 @@ ynh_script_progression --message="Updating .env configuration..." ynh_backup_if_checksum_is_different --file="$final_path/.env" domain=$new_domain path_url=$new_path + +# We must use chrome sandbox for kernels 5.x, 6.x doesn't need it anymore +kernel_release=$(uname -r) +if [[ $kernel_release == 5.* ]] +then + bypass_sandbox="TRUE" + if [ $install_chromium -eq 1 ] + then + ynh_print_warn --message="Using non sandboxed chromium as kernel release is less than 6.x" + fi +else + bypass_sandbox="FALSE" +fi + ynh_add_config --template=".env" --destination="$final_path/.env" # FIXME: this should be handled by the core in the future