From 33e53806d11dbaf16f92594861e93e2dbd2ca311 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 1 May 2024 21:10:51 +0200 Subject: [PATCH] No need for update-alternatives --- scripts/install | 4 ---- scripts/upgrade | 4 ---- 2 files changed, 8 deletions(-) diff --git a/scripts/install b/scripts/install index ce15a03..15fa755 100755 --- a/scripts/install +++ b/scripts/install @@ -86,8 +86,6 @@ chown $app:$app $install_dir/.env #================================================= ynh_script_progression --message="Deploying..." -update-alternatives --set php /usr/bin/php$phpversion - pushd "$install_dir" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install @@ -110,8 +108,6 @@ ynh_store_file_checksum --file="$install_dir/.env" chmod 400 "$install_dir/.env" chown $app:$app "$install_dir/.env" -update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION} - #================================================= # INSTALL THE CRON FILE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index b53a999..aea1ed3 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -107,8 +107,6 @@ ynh_add_config --template=".env" --destination="$install_dir/.env" #================================================= ynh_script_progression --message="Deploying..." -update-alternatives --set php /usr/bin/php$phpversion - pushd "$install_dir" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install @@ -151,8 +149,6 @@ ynh_store_file_checksum --file="$install_dir/.env" chmod 400 "$install_dir/.env" chown $app:$app "$install_dir/.env" -update-alternatives --set php /usr/bin/php${YNH_PHP_VERSION} - #================================================= # INSTALL THE CRON FILE #=================================================