mirror of
https://github.com/YunoHost-Apps/dokuwiki_ynh.git
synced 2024-09-03 18:26:20 +02:00
[enh] do not store unnecessary files checksums
and cleaning comments
This commit is contained in:
parent
efd392a8c1
commit
3f59ea2e01
2 changed files with 5 additions and 4 deletions
|
@ -163,8 +163,9 @@ cp ../conf/plugins.local.php $final_path/conf/plugins.local.php.bak
|
||||||
|
|
||||||
# Calculate and store the config file checksum into the app settings
|
# Calculate and store the config file checksum into the app settings
|
||||||
ynh_store_file_checksum "$final_path/conf/local.protected.php"
|
ynh_store_file_checksum "$final_path/conf/local.protected.php"
|
||||||
ynh_store_file_checksum "$final_path/conf/local.php"
|
### Files can be modified by user, no need to store checksum as they cannot be overwritten safely by package
|
||||||
ynh_store_file_checksum "$final_path/conf/acl.auth.php"
|
#ynh_store_file_checksum "$final_path/conf/local.php"
|
||||||
|
#ynh_store_file_checksum "$final_path/conf/acl.auth.php"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -83,7 +83,6 @@ if [ ! -f "$final_path/conf/local.protected.php" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do not overwrite existing dokuwiki configuration as it could have user customization's and settings.
|
# Do not overwrite existing dokuwiki configuration as it could have user customization's and settings.
|
||||||
# Cannot use helper "ynh_backup_if_checksum_is_different"
|
|
||||||
# Create file if it does not exist
|
# Create file if it does not exist
|
||||||
if [ ! -f "$final_path/conf/local.php" ]; then
|
if [ ! -f "$final_path/conf/local.php" ]; then
|
||||||
cp ../conf/local.php $final_path/conf
|
cp ../conf/local.php $final_path/conf
|
||||||
|
@ -93,7 +92,6 @@ if [ ! -f "$final_path/conf/local.php" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do not overwrite existing ACL configuration file as it could have user customization's and settings.
|
# Do not overwrite existing ACL configuration file as it could have user customization's and settings.
|
||||||
# Cannot use helper "ynh_backup_if_checksum_is_different"
|
|
||||||
# Create file if it does not exist
|
# Create file if it does not exist
|
||||||
# See https://www.dokuwiki.org/acl#background_info
|
# See https://www.dokuwiki.org/acl#background_info
|
||||||
if [ ! -f "$final_path/conf/acl.auth.php" ]; then
|
if [ ! -f "$final_path/conf/acl.auth.php" ]; then
|
||||||
|
@ -264,6 +262,8 @@ chown $app:root $final_path/inc
|
||||||
|
|
||||||
# Do "DokuWiki" owner of configuration files that must be writable
|
# Do "DokuWiki" owner of configuration files that must be writable
|
||||||
chown $app:root $final_path/conf/{local.php,local.php.bak,users.auth.php,acl.auth.php,plugins.local.php,plugins.local.php.bak}
|
chown $app:root $final_path/conf/{local.php,local.php.bak,users.auth.php,acl.auth.php,plugins.local.php,plugins.local.php.bak}
|
||||||
|
# Usefull for some plugins like https://www.dokuwiki.org/plugin:siteexport
|
||||||
|
# See https://www.dokuwiki.org/devel:preload
|
||||||
chown $app:root $final_path/inc/preload.php
|
chown $app:root $final_path/inc/preload.php
|
||||||
# Grant read-only to all files as files copied above are owned by root by defaut and nginx cannot read them
|
# Grant read-only to all files as files copied above are owned by root by defaut and nginx cannot read them
|
||||||
# There are only files in the folder and there is sublevels. No need to use "find"
|
# There are only files in the folder and there is sublevels. No need to use "find"
|
||||||
|
|
Loading…
Add table
Reference in a new issue