MadJoker0815 / roborock_nologs

No reboots at 3am and no logfiles that fill up the disk and checks to keep filesystem healthy
25 stars 1 forks source link

failed to create symbolic link #5

Open badsmoke opened 3 years ago

badsmoke commented 3 years ago

the install script does not work for me, the symlinks cannot be set because the file already exists.

root@rockrobo:~# sh install.sh 
Before installing, please check if the cron jobs have not been set yet. Otherwise it will add a different line in /etc/crontab.
Press Enter to continue

Install cron tasks.
cron stop/waiting
cron start/running, process 699
Modify logrotate.sh to be not as aggressive and delete old log files.
logrotate stop/waiting
logrotate start/running, process 715
Executing check_reboot script takes aprox. 1 min.
rrwatchdoge stop/waiting
ln: failed to create symbolic link '/mnt/data/rockrobo/rrlog/watchdog.log': File exists
ln: failed to create symbolic link '/mnt/data/rockrobo/rrlog/rrlog.log': File exists
ln: failed to create symbolic link '/mnt/data/rockrobo/rrlog/miio.log': File exists
rrwatchdoge start/running, process 1129
ALL DONE!
Please check your robot for function

I just added in the script that he should delete the files before

rm /mnt/data/rockrobo/rrlog/watchdog.log
rm /mnt/data/rockrobo/rrlog/rrlog.log
rm /mnt/data/rockrobo/rrlog/miio.log

or force with "ln -fs"