Skip to content

Commit 3073718

Browse files
committed
Ignore files from share/GUI missing in htdocs when removing
Some of the files in /var/cfengine/share/GUI may be not exist in the /var/cfengine/httpd/htdocs directory because they may be removed by some processes and policies. Just ignore such files and move on. Ticket: ENT-3385 Changelog: None
1 parent ab6ed39 commit 3073718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/common/cfengine-hub/preinstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ if [ -d $PREFIX/httpd/htdocs ]; then
326326
cf_console echo "Using share/GUI as template"
327327
( cd $PREFIX/share/GUI
328328
# Make list of files in share/GUI and remove "them" from httpd/htdocs
329-
find -type f -print0 | ( cd ../../httpd/htdocs/ && xargs -0 rm )
329+
find -type f -print0 | ( cd ../../httpd/htdocs/ && xargs -0 rm -f )
330330
)
331331
else
332332
# Purge all files in httpd/htdocs with hardcoded exceptions:

0 commit comments

Comments
 (0)