From fcaa277cb7bd68ea4264f3b6410cc50bcda5b147 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 5 Sep 2022 03:06:57 +0200 Subject: [PATCH] Apply example_ynh --- check_process | 3 --- conf/nginx.conf | 2 +- doc/.DS_Store | Bin 6148 -> 0 bytes doc/screenshots/.DS_Store | Bin 6148 -> 0 bytes scripts/install | 18 ++++++++++-------- scripts/remove | 2 +- scripts/restore | 22 +++++++++++----------- scripts/upgrade | 29 ++++++++++++++++++----------- 8 files changed, 41 insertions(+), 35 deletions(-) delete mode 100644 doc/.DS_Store delete mode 100644 doc/screenshots/.DS_Store diff --git a/check_process b/check_process index c3b3e73..1636a1e 100644 --- a/check_process +++ b/check_process @@ -1,10 +1,7 @@ ;; Test complet ; Manifest domain="domain.tld" - path="/path" - admin="john" is_public=1 - password="1Strong-Password" ; Checks pkg_linter=1 setup_sub_dir=0 diff --git a/conf/nginx.conf b/conf/nginx.conf index 255752b..d86f108 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,4 @@ -location / { +location __PATH__/ { # Path to source alias __FINALPATH__/web/; diff --git a/doc/.DS_Store b/doc/.DS_Store deleted file mode 100644 index c90376b56b73b627c519d1a34c5d8c9abb7004dc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKyG{c^3>-s>NNG}1?l15Mt0;UyegFv&DbPhqfch%Fi%(bFB<-Yt6!=#P*lfL7ulP#UTPH8)y|&RG>0a|qcjG!J4AG8> j(T=(Cc6=8_S=W5c^IkY62A%n!6ZJFTy2zx!wH5dQ#>Eyj diff --git a/doc/screenshots/.DS_Store b/doc/screenshots/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0&1 - chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 - -# Create a dedicated NGINX config -ynh_add_nginx_config - #================================================= # UPGRADE DEPENDENCIES #================================================= @@ -91,6 +81,23 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2 # Create a dedicated PHP-FPM config ynh_add_fpm_config +#================================================= +# NGINX CONFIGURATION +#================================================= +ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 + +# Create a dedicated NGINX config +ynh_add_nginx_config + +#================================================= +# SPECIFIC UPGRADE +#================================================= +# INSTALL LYCHEE WITH COMPOSER +#================================================= +ynh_script_progression --message="Installing $app with Composer..." --weight=5 + +ynh_install_composer --install_args="--ignore-platform-reqs" 2>&1 + #================================================= # UPDATE A CONFIG FILE #=================================================