Skip to content

Commit

Permalink
Don't delete .sh files in ../nextcloud
Browse files Browse the repository at this point in the history
Fix nextcloud/server#48773
Fix #2689

Signed-off-by: Daniel Hansson <[email protected]>
  • Loading branch information
enoch85 authored Oct 18, 2024
1 parent 5418cf7 commit 83372bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nextcloud-startup-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,11 @@ rm -f "$SCRIPTS/desec_menu.sh"
rm -f "$NCDATA"/*.log

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

truncate -s 0 \
/root/.bash_history \
Expand Down

0 comments on commit 83372bb

Please sign in to comment.