mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
update inotify script (#2449)
This commit is contained in:
parent
461cefa098
commit
7080236e06
@ -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
|
||||
|
||||
@ -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 &
|
||||
|
||||
Loading…
Reference in New Issue
Block a user