There are these two variables within fogsettings:
docroot='/var/www/html/'
webroot='/fog/'
Why not respect them?
Whatever docroot
is set to, touch only that and stop touching other web directories period.
Because what business does the installer have making symlinks in directories that are not defined within /opt/fog/.fogsettings
?
Also, I think the fog reporting should source the /opt/fog/.fogsettings
file and use something like this to determine the correct file to get the version from:
source /opt/fog/.fogsettings
config_file=${docroot}/${webroot}/lib/fog/system.class.php
fog_version=$(cat ${config_file} | grep FOG_VERSION | cut -d',' -f2 | cut -d"'" -f2)
Concerning systems out there with the old web directories, I really don’t see an issue with just leaving it as-is. I know @Sebastian-Roth said it could be problematic when manually updating kernels - but the web UI has a kernel update feature, and anyone digging into the docroot
guts probably can figure this stuff out for themselves or come here and ask for help.