Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to create symbolic link #5

Open
badsmoke opened this issue Sep 24, 2020 · 0 comments
Open

failed to create symbolic link #5

badsmoke opened this issue Sep 24, 2020 · 0 comments

Comments

@badsmoke
Copy link

badsmoke commented Sep 24, 2020

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant