diff --git a/addons/notify-crontab.sh b/addons/notify-crontab.sh index 715b6bf0..4df57ccb 100644 --- a/addons/notify-crontab.sh +++ b/addons/notify-crontab.sh @@ -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 diff --git a/apps/smbmount.sh b/apps/smbmount.sh index 50a85e1d..9fb236b5 100644 --- a/apps/smbmount.sh +++ b/apps/smbmount.sh @@ -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 &