update inotify script (#2449)

This commit is contained in:
Daniel Hansson 2023-03-12 12:03:03 +01:00 committed by GitHub
parent 461cefa098
commit 7080236e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -16,5 +16,7 @@ root_check
MOUNT_ID="$1"
countdown "iNotify starts in 120 seconds" "120" >> "$VMLOGS"/files_inotify.log
# Add crontab for this external storage
nextcloud_occ files_external:notify -v "$MOUNT_ID" >> "$VMLOGS"/files_inotify.log

View File

@ -415,7 +415,7 @@ files_inotify app and set up the cronjob for this external storage."
# Add crontab
print_text_in_color "$ICyan" "Generating crontab..."
crontab -u root -l | { cat; echo "@reboot $SCRIPTS/notify-crontab.sh $MOUNT_ID"; } | crontab -u root
crontab -u root -l | { cat; echo "@reboot $SCRIPTS/notify-crontab.sh $MOUNT_ID"; } | crontab -u root -
# Run the command in a subshell and don't exit if the smbmount script exits
nohup sudo -u www-data php "$NCPATH"/occ files_external:notify -v "$MOUNT_ID" >> $VMLOGS/files_inotify.log &