From 1f553feb91af89605f2a3eb397e4f77075c724aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 15 Aug 2023 10:10:59 +0200 Subject: [PATCH] fix --- manifest.toml | 18 +++++++++++------- scripts/install | 7 ------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/manifest.toml b/manifest.toml index 722b0c9..76a410e 100644 --- a/manifest.toml +++ b/manifest.toml @@ -54,11 +54,11 @@ ram.runtime = "50M" type = "boolean" default = true - [install.with_mysql] - ask.en = "Do you need a MySQL database?" - ask.fr = "Avez-vous besoin d'une base de données MySQL ?" - type = "boolean" - default = false + #[install.with_mysql] + #ask.en = "Do you need a MySQL database?" + #ask.fr = "Avez-vous besoin d'une base de données MySQL ?" + #type = "boolean" + #default = false [resources] [resources.sources.main] @@ -73,7 +73,11 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "gemserv" - + packages = "gemserv php8.2-fpm php8.2-mbstring" + #packages_from_raw_bash = """ + # if [[ "$database" == true ]]; then + # echo "mariadb-server" + # fi + #""" #[resources.database] #type = "mysql" diff --git a/scripts/install b/scripts/install index 4de9862..be71532 100755 --- a/scripts/install +++ b/scripts/install @@ -53,8 +53,6 @@ ynh_script_progression --message="Setting up source files..." # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir/www/htmgem" -#chmod 750 "$install_dir" -#chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= @@ -65,11 +63,6 @@ ynh_script_progression --message="Configuring PHP-FPM..." # Create a dedicated PHP-FPM config ynh_add_fpm_config -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Configuring NGINX web server..." - # Create a dedicated NGINX config ynh_add_nginx_config