1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_capsule_ynh.git synced 2024-09-03 19:46:21 +02:00
This commit is contained in:
Éric Gaspar 2023-08-15 10:10:59 +02:00
parent 5b13228df7
commit 1f553feb91
2 changed files with 11 additions and 14 deletions

View file

@ -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"

View file

@ -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