mirror of
https://github.com/YunoHost-Apps/moncycle_ynh.git
synced 2024-09-03 19:46:16 +02:00
Test install composer
This commit is contained in:
parent
866f96210f
commit
62a53514a2
4 changed files with 19 additions and 3 deletions
|
@ -5,7 +5,7 @@ name = "Moncycle"
|
|||
description.en = "Menstrual cycle follow-up for natural family planning"
|
||||
description.fr = "Suivi de cycle pour les méthodes naturelles de régulation de naissance"
|
||||
|
||||
version = "7.0~ynh5"
|
||||
version = "7.0~ynh6"
|
||||
|
||||
maintainers = ["Raoul de Limezy"]
|
||||
|
||||
|
@ -42,6 +42,7 @@ ram.runtime = "50M"
|
|||
sha256 = "25f435a55304a5692f55a681971ac41a034c527a87198612e3bfadb7a3b92028"
|
||||
|
||||
[resources.system_user]
|
||||
allow_email = true
|
||||
|
||||
[resources.install_dir]
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
# PHP APP SPECIFIC
|
||||
#=================================================
|
||||
|
||||
YNH_COMPOSER_VERSION="2.6.5"
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
#=================================================
|
||||
|
|
|
@ -18,6 +18,8 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
|||
ynh_setup_source --dest_dir="$install_dir"
|
||||
|
||||
ynh_exec_warn_less mkdir "$install_dir/sessions"
|
||||
ynh_exec_warn_less mkdir "$install_dir/soap_cache"
|
||||
ynh_exec_warn_less mkdir "$install_dir/composer"
|
||||
|
||||
chmod 750 "$install_dir"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
|
@ -25,11 +27,23 @@ chown -R $app:www-data "$install_dir"
|
|||
|
||||
pushd "$install_dir"
|
||||
ynh_exec_warn_less mv ./www_data/* .
|
||||
ynh_exec_warn_less ./module/install.sh
|
||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < db/table.sql
|
||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < db/demo.sql
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
# INSTALL COMPOSER DEPENDENCIES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Installing composer dependencies..." --weight=1
|
||||
|
||||
ynh_exec_warn_less ynh_install_composer --phpversion="$phpversion" --composerversion="$YNH_COMPOSER_VERSION" --workdir="$install_dir/composer"
|
||||
|
||||
# worckaround while https://github.com/chartjs/Chart.js/issues/11478 is not fixed
|
||||
ynh_exec_warn_less mkdir "$install_dir/vendor/chartjs"
|
||||
ynh_exec_warn_less curl -o /var/www/html/vendor/chartjs/chart.js https://cdn.jsdelivr.net/npm/chart.js
|
||||
|
||||
#=================================================
|
||||
# PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -38,7 +38,6 @@ chown -R $app:www-data "$install_dir"
|
|||
pushd "$install_dir"
|
||||
ynh_exec_warn_less mv ./www_data/* .
|
||||
ynh_exec_warn_less mv /tmp/config.php .
|
||||
ynh_exec_warn_less ./module/install.sh
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue