Skip to content

Commit 5f4c507

Browse files
authored
don't remove nextcloud.log, truncate it instead
1 parent 1d102cc commit 5f4c507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nextcloud-startup-script.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,6 @@ rm -f "$SCRIPTS/change_db_pass.sh"
570570
rm -f "$SCRIPTS/test_connection.sh"
571571
rm -f "$SCRIPTS/instruction.sh"
572572
rm -f "$NCDATA/nextcloud.log"
573-
rm -f "$VMLOGS/nextcloud.log"
574573
rm -f "$SCRIPTS/static_ip.sh"
575574

576575
find /root "/home/$UNIXUSER" -type f \( -name '*.sh*' -o -name '*.html*' -o -name '*.tar*' -o -name 'results' -o -name '*.zip*' \) -delete
@@ -584,7 +583,8 @@ truncate -s 0 \
584583
"/var/spool/mail/$UNIXUSER" \
585584
/var/log/apache2/access.log \
586585
/var/log/apache2/error.log \
587-
/var/log/cronjobs_success.log
586+
/var/log/cronjobs_success.log \
587+
"$VMLOGS/nextcloud.log
588588
589589
sed -i "s|sudo -i||g" "/home/$UNIXUSER/.bash_profile"
590590

0 commit comments

Comments
 (0)