Skip to content

Commit e3b2158

Browse files
authored
Don't delete .sh files in ../nextcloud (#2694)
Fix nextcloud/server#48773 Fix #2689 Signed-off-by: Daniel Hansson <[email protected]>
1 parent 5418cf7 commit e3b2158

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nextcloud-startup-script.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,11 @@ rm -f "$SCRIPTS/desec_menu.sh"
517517
rm -f "$NCDATA"/*.log
518518

519519
find /root "/home/$UNIXUSER" -type f \( -name '*.sh*' -o -name '*.html*' -o -name '*.tar*' -o -name 'results' -o -name '*.zip*' \) -delete
520-
find "$NCPATH" -type f \( -name 'results' -o -name '*.sh*' \) -delete
521520
sed -i "s|instruction.sh|nextcloud.sh|g" "/home/$UNIXUSER/.bash_profile"
521+
# TODO: Do we really need this?
522+
# https://github.com/nextcloud/server/issues/48773
523+
# find "$NCPATH" -type f \( -name 'results' -o -name '*.sh*' \) -delete
524+
find "$NCPATH" -type f \( -name 'results' \) -delete
522525

523526
truncate -s 0 \
524527
/root/.bash_history \

0 commit comments

Comments
 (0)