From 90b37ac909bcd6311fe422f961f5c8f96ed69fcc Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 5 Feb 2019 22:54:12 +0100 Subject: [PATCH] reapply example_ynh onto install and check_process --- check_process | 7 ++++--- scripts/install | 8 +++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/check_process b/check_process index 130e18e..a83869d 100644 --- a/check_process +++ b/check_process @@ -22,9 +22,10 @@ Level 1=auto Level 2=auto Level 3=auto -# Level 4: - Level 4=0 -# Level 5: +# Level 4: If the app supports LDAP and SSOwat, turn level 4 to '1' and add a link to an issue or a part of your code to show it. +# If the app does not use LDAP nor SSOwat, and can't use them, turn level 4 to 'na' and explain as well. + #no ldap for now + Level 4=na Level 5=auto Level 6=auto Level 7=auto diff --git a/scripts/install b/scripts/install index 1ac1118..2e9c530 100755 --- a/scripts/install +++ b/scripts/install @@ -25,6 +25,7 @@ ynh_abort_if_errors #================================================= # RETRIEVE ARGUMENTS FROM THE MANIFEST #================================================= + domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH is_public=$YNH_APP_ARG_IS_PUBLIC @@ -160,7 +161,7 @@ ynh_system_user_create $app "$final_path" #================================================= # SPECIFIC SETUP #================================================= -# Install Wekan +# INSTALL WEKAN #================================================= # Install wekan dependencies @@ -174,6 +175,7 @@ popd #================================================= # SETUP SYSTEMD #================================================= + ### `ynh_systemd_config` is used to configure a systemd script for an app. ### It can be used for apps that use sysvinit (with adaptation) or systemd. ### Have a look at the app to be sure this app needs a systemd script. @@ -198,6 +200,10 @@ ynh_add_systemd_config #================================================= # SECURE FILES AND DIRECTORIES #================================================= + +### For security reason, any app should set the permissions to root: before anything else. +### Then, if write authorization is needed, any access should be given only to directories +### that really need such authorization. ynh_print_info "Fixing permissions ..." # Set strong right permissions to app files chown -R $app: "$final_path"