1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpmyadmin_ynh.git synced 2024-09-03 19:56:46 +02:00

Don't use Composer

This commit is contained in:
orhtej2 2023-11-02 18:01:39 +01:00
parent b12f0aef6e
commit 56caa8a9d5
3 changed files with 0 additions and 31 deletions

View file

@ -4,8 +4,6 @@
# COMMON VARIABLES
#=================================================
YNH_COMPOSER_VERSION=2.0.14
#=================================================
# PERSONAL HELPERS
#=================================================

View file

@ -76,18 +76,6 @@ ynh_add_config --template="../conf/config.inc.php" --destination="$install_dir/c
chown $app: $install_dir/config.inc.php
chmod 640 $install_dir/config.inc.php
#=================================================
# INSTALL DEPENDENCIES WITH COMPOSER
#=================================================
ynh_script_progression --message="Installing dependencies with Composer..." --weight=60
# Install Composer
ynh_install_composer
# Install dependencies
# ynh_exec_warn_less ynh_composer_exec --commands="update --no-dev"
ynh_composer_exec --commands="update --no-dev"
#=================================================
# GENERIC FINALIZATION
#=================================================

View file

@ -114,23 +114,6 @@ fi
mkdir -p $install_dir/tmp
chown -R $app: $install_dir/tmp
#=================================================
# INSTALL DEPENDENCIES
#=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading dependencies with Composer..." --weight=19
# Install Composer
ynh_install_composer
# Force dependency to the used PHP version
ynh_exec_warn_less ynh_composer_exec --commands="config -g platform.php $YNH_PHP_VERSION"
# Install dependencies
ynh_exec_warn_less ynh_composer_exec --commands="update --no-dev"
fi
#=================================================
# END OF SCRIPT
#=================================================