Locke_99GS
November 19th, 2009, 06:37 PM
In the postinstall section of the deb package control file, I'm attempting to add a line to crontab, but cron must run the line as the user that is installing the package, not root. Cron is capable of this, but I cannot seem to get the package to do this.
I've tried $USER, which contains "root", and even tried $SUDO_USER (thinking it was invoked with sudo?) which still contains "root". How can I get the expected relative output of $USER within a postinstall script?
This must be run hourly, otherwise I would simply use anacron, and apparently I am unable to edit the user's own crontab, that I'm aware of anyways.
Thanks in advance.
I've tried $USER, which contains "root", and even tried $SUDO_USER (thinking it was invoked with sudo?) which still contains "root". How can I get the expected relative output of $USER within a postinstall script?
This must be run hourly, otherwise I would simply use anacron, and apparently I am unable to edit the user's own crontab, that I'm aware of anyways.
Thanks in advance.