From 74d0cbe2cdca18ca1691788d828c864820ccb2a2 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 25 Nov 2023 09:22:00 +0100 Subject: [PATCH] cleaning --- manifest.toml | 3 +++ scripts/_common.sh | 4 ++-- scripts/install | 9 ++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/manifest.toml b/manifest.toml index c85536c..f864781 100644 --- a/manifest.toml +++ b/manifest.toml @@ -24,8 +24,11 @@ fund = "https://opencollective.com/ladigitale" yunohost = ">= 11.2" architectures = "all" multi_instance = true + ldap = "not_relevant" + sso = "not_relevant" + disk = "100M" ram.build = "500M" ram.runtime = "100M" diff --git a/scripts/_common.sh b/scripts/_common.sh index 54cc852..09b0461 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -16,8 +16,8 @@ _digiscreen_build() { echo "VUE_APP_GOOGLE_API_KEY=$apikey_google_youtube" >> .env ynh_use_nodejs - "$ynh_npm" install - "$ynh_npm" run build + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm run build popd } diff --git a/scripts/install b/scripts/install index 042bf33..7c6053f 100644 --- a/scripts/install +++ b/scripts/install @@ -24,6 +24,10 @@ ynh_script_progression --message="Setting up source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir/sources" +chmod 750 "$install_dir" +chmod -R o-rwx "$install_dir" +chown -R "$app:www-data" "$install_dir" + _digiscreen_build mv "$install_dir/sources/dist" "$install_dir/www" @@ -40,11 +44,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1 ynh_add_nginx_config -#================================================= -# PHP-FPM CONFIGURATION -#================================================= -ynh_script_progression --message="Configuring PHP-FPM..." --weight=1 - ynh_add_fpm_config #=================================================