From f311846e1dd7c58976c432cc31770253bd3e27e8 Mon Sep 17 00:00:00 2001 From: farvardin Date: Sun, 18 Feb 2024 21:54:23 +0100 Subject: [PATCH 1/3] updating config and installation rights --- conf/config.php | 6 +++--- scripts/install | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/conf/config.php b/conf/config.php index bf7cf7e..8cb6b3c 100755 --- a/conf/config.php +++ b/conf/config.php @@ -74,9 +74,9 @@ $START_PAGE = 'main'; // Which page should be default (start page)? $RSS = 'RSS'; // if needed (if autodetection doesn't work), force language -$LANG = __LANGUAGE__; -// (it looks like forcing another language crashes lionwiki so it's better to keep LANG=en at the moment... autodetection seems to work anyway) -$LANG = en; +$LANG = '__LANGUAGE__'; +// (it looks like forcing another language crashes lionwiki so it's better to keep LANG='en' at the moment... autodetection seems to work anyway) +$LANG = 'en'; /* see the file config.t2t to tweak the syntax and even more! */ diff --git a/scripts/install b/scripts/install index ae03004..24818e6 100755 --- a/scripts/install +++ b/scripts/install @@ -73,8 +73,9 @@ ynh_add_nginx_config # chmod again to fix unaccessible templates / css files chmod -R 755 "$install_dir" -# don't allow read access to config.php for everyone +# don't allow read access to config.php and pages/ for everyone chmod 750 "$install_dir"/config.php +chmod -R 750 "$install_dir"/var/pages/ # chmod root folder chmod 750 "$install_dir" From 0466be6a257bf204cb8e44f1e045509003dbd539 Mon Sep 17 00:00:00 2001 From: farvardin Date: Sun, 18 Feb 2024 22:00:20 +0100 Subject: [PATCH 2/3] remove chmod 750 on pages which prevents writing them --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 24818e6..c95e2df 100755 --- a/scripts/install +++ b/scripts/install @@ -73,9 +73,9 @@ ynh_add_nginx_config # chmod again to fix unaccessible templates / css files chmod -R 755 "$install_dir" -# don't allow read access to config.php and pages/ for everyone +# don't allow read access to config.php for everyone chmod 750 "$install_dir"/config.php -chmod -R 750 "$install_dir"/var/pages/ +# chmod -R 750 "$install_dir"/var/pages/ # prevents from writing pages! # chmod root folder chmod 750 "$install_dir" From e538f93afc5de6f0388d5b6954b751b03c39e466 Mon Sep 17 00:00:00 2001 From: farvardin Date: Sun, 18 Feb 2024 22:03:41 +0100 Subject: [PATCH 3/3] remise des droits sur pages/ --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index c95e2df..33c6b4e 100755 --- a/scripts/install +++ b/scripts/install @@ -73,9 +73,9 @@ ynh_add_nginx_config # chmod again to fix unaccessible templates / css files chmod -R 755 "$install_dir" -# don't allow read access to config.php for everyone +# don't allow read access to config.php and pages/ for everyone chmod 750 "$install_dir"/config.php -# chmod -R 750 "$install_dir"/var/pages/ # prevents from writing pages! +chmod -R 750 "$install_dir"/var/pages/ # chmod root folder chmod 750 "$install_dir"