1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dokuwiki_ynh.git synced 2024-09-03 18:26:20 +02:00

[enh] Remove deleted files.

This commit is contained in:
opi 2016-01-25 13:58:36 +01:00
parent 324019ac6c
commit ef32510a43

View file

@ -29,6 +29,10 @@ sudo cp ../conf/acl.auth.php $final_path/conf
# See https://www.dokuwiki.org/update_check # See https://www.dokuwiki.org/update_check
sudo touch $final_path/doku.php sudo touch $final_path/doku.php
# Remove deleted files
# See https://www.dokuwiki.org/install:unused_files
grep -Ev '^($|#)' ../sources/data/deleted.files | xargs -I {} sudo rm -vrf $final_path/{}
# Files owned by root, www-data can just read # Files owned by root, www-data can just read
sudo find $final_path -type f | xargs sudo chmod 0644 sudo find $final_path -type f | xargs sudo chmod 0644
sudo find $final_path -type d | xargs sudo chmod 755 sudo find $final_path -type d | xargs sudo chmod 755