Anyone know what /tmp/watch-install-progress does?
AnsweredCSF/LFD is complaining about this script as it's an executable. It appears to be related to cPanel stuff. But i have no idea why it's in /tmp or if that is by mistake or just not deleted. Anyone know it's purpose? Can I just delete it? Below are the contents of the script on a server running cPanel v122:
#!/bin/bash
if [ -x /var/cpanel/watch_install_progress ]; then
exec /var/cpanel/watch_install_progress
echo "Exec failed with $?, indicating a problem with the watch_install_progress program itself. Continuing with previous implementation."
fi
###################################################################
diag() {
# Send this to stderr so the caller can selectively filter out
# either log output or diagnostic output.
echo "[$0]" $* 1>&2
}
finished() {
if [ ! -z "$tail_pid" ]; then
kill $tail_pid
fi
diag "Done"
exit 0
}
trap finished SIGTERM SIGINT
for try in `seq 1 60`; do
if [ -f /var/log/cpanel-install.log ]; then
diag "Installer has started"
break
fi
diag "Waiting for installer to start ..."
sleep 2
done
export main_pid=$$
(
sleep 10
while ps auxww | grep -qs '[i]nstaller.*skiplicensecheck'; do
diag "Installer is still running; continue waiting ..."
sleep 5
done
diag "Installer appears to have finished"
kill $main_pid
) &
journalctl -n50 -af --output=cat --unit=cpinstall &
tail_pid=$!
wait
-
Hey there! Is this a new installation? Normally that gets removed after a successful install, but it may not have happened for some reason. I'm guessing you're also the other poster from today here?
https://forum.configserver.com/viewtopic.php?t=13128
You are free to delete that file from the system as it isn't used for anything after the initial install.
0 -
You are correct, i did post over there too. That person was the only other result I saw when I searched.
It was a fresh install in fall/winter of 2023. We were migrating accounts from centos 7 to almalinux 8. For whatever reason we we missing those notifications until recently and when I saw them i wasn't sure what to make of it so i figured I'd ask. I'll go ahead and delete that file then, thanks for confirming!
0 -
You're very welcome!
0
Please sign in to leave a comment.
Comments
3 comments