mirror of
https://github.com/YunoHost-Apps/lionwiki-t2t_ynh.git
synced 2024-09-03 19:36:27 +02:00
fix chown / chmod
This commit is contained in:
parent
7d723ff851
commit
da39c8d5f2
2 changed files with 13 additions and 3 deletions
|
@ -3,8 +3,8 @@ $WIKI_TITLE = 'LionWiki and txt2tags sample'; // name of the site
|
||||||
|
|
||||||
// SHA1 hash of password. If empty (or commented out), no password is required
|
// SHA1 hash of password. If empty (or commented out), no password is required
|
||||||
|
|
||||||
$PASSWORD = sha1("demo");
|
$PASSWORD = sha1("demo1");
|
||||||
$Admin["PASSWORD"] = sha1("demo");
|
$Admin["PASSWORD"] = sha1("demo1");
|
||||||
|
|
||||||
//$TEMPLATE = 'templates/dandelion.html'; // presentation template
|
//$TEMPLATE = 'templates/dandelion.html'; // presentation template
|
||||||
//$TEMPLATE = 'templates/fravashyo.html';
|
//$TEMPLATE = 'templates/fravashyo.html';
|
||||||
|
@ -17,7 +17,7 @@ $TEMPLATE = 'templates/minimaxing.html';
|
||||||
//$TEMPLATE = 'templates/bootstrap.html';
|
//$TEMPLATE = 'templates/bootstrap.html';
|
||||||
//$TEMPLATE = 'templates/ElectricObsidian/ElectricObsidian.html';
|
//$TEMPLATE = 'templates/ElectricObsidian/ElectricObsidian.html';
|
||||||
//$TEMPLATE = 'templates/literature.html';
|
//$TEMPLATE = 'templates/literature.html';
|
||||||
$TEMPLATE = 'templates/minimal.html';
|
//$TEMPLATE = 'templates/minimal.html';
|
||||||
|
|
||||||
// if true, you need to fill password for reading pages too
|
// if true, you need to fill password for reading pages too
|
||||||
// before setting to true, read http://lionwiki.0o.cz/index.php?page=UserGuide%3A+How+to+use+PROTECTED_READ
|
// before setting to true, read http://lionwiki.0o.cz/index.php?page=UserGuide%3A+How+to+use+PROTECTED_READ
|
||||||
|
|
|
@ -259,6 +259,16 @@ fi
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R root: $final_path
|
chown -R root: $final_path
|
||||||
|
|
||||||
|
# Wiki needs to write inside these folders. Make "Wiki" owner
|
||||||
|
chown -R $app:root $final_path/{var}
|
||||||
|
|
||||||
|
# Allow access to public assets like style sheets
|
||||||
|
find $final_path/templates -type f -print0 | xargs -0 chmod 0644
|
||||||
|
find $final_path/templates -type d -print0 | xargs -0 chmod 0755
|
||||||
|
# Using "find" instead of "chmod -R 755" so files does not become executable too
|
||||||
|
# chmod : -rwxr-xr-x 1 root root 241 May 3 08:36 index.html => BAD
|
||||||
|
# find : -rw-r--r-- 1 1001 1002 241 May 3 08:36 index.html => GOOD
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP LOGROTATE
|
# SETUP LOGROTATE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue