Page 1 of 1

Missing /var/lib/zm and a few scripts

Posted: Thu Mar 19, 2009 7:43 pm
by jnk1690
Hi All,

Probably a simple problem, but when ZM is installed from the live cd, I get the directory /var/lib/zm setup with the .pl files and also populated the zmdbbackup, zmdbrestore and the backup sql file that gets created automatically once a week.

When I installed from source, I end up with most of those files in the /usr/local/bin, but the scripts zmdbbackup and zmdbrestore never get copied in from the source dirs. Also, there is no /var/lib/zm directory.

Is there an easy way to fix this? I even tried using configure with ZM_PATH_SOCKS=/var/lib/zm and ZM_PATH_LOGS but that did not create those directories either. Not sure if I'm misunderstanding the ./configure and make options.

I'm trying to get the source version to look like the livecd directory structure.

Thanks in advance,

Joel

Posted: Thu Mar 19, 2009 9:16 pm
by cordel
Those scripts, and settings are added by the packagers and where not part of the original source. We tend to add extra goodies when we make packages some times.

Posted: Fri Mar 20, 2009 12:44 pm
by jnk1690
Thanks, Cordel.

I did manage to work out the paths using --prefix=...

To duplicate the liveCD install, I see that the zmdbbackup is executed from the /etc/logrotate.d/zm file. What I can't figure out is why that file is not created/installed when I install from the complied version.

Do I have to set that up manually, or is there some ./configure option that I forgot?


Thanks again,

Joel

Posted: Sat Mar 21, 2009 7:05 pm
by cordel
They have to be manually setup as they were not part of the original source. They are just there to keep things accessible.