Message Boards
KEEP_TEMP_FILES with QAD Cloud
Tim Collins, modified 3 Years ago.
KEEP_TEMP_FILES with QAD Cloud
Post Date: 3/22/23 (Bronze, 5 Posts) Recent PostsHello YAB Team,
Is there another way to activate KEEP_TEMP_FILES aside from setting an environment variable? Undocumented flag? Other possibility?
The "not so pretty" technical details if you're interested in the driving issue:
QAD Cloud Server - GNU/Linux 3.10
yab client 1.12.1.8
yab ee-app 1.12.2.5
Cloud provides yab access to customers via sudo on development servers. Those sudo entries are implemented with a preceeding "/bin/bash -c " requiring sudo to be executed with -i (or permission is denied - without -i the preceeding "/bin/bash -c " is not inserted). sudo does allow the callers environment to be preserved with the -E, but -E and -i are mutually exclusive. Net result, there appears to be no way to pass "export KEEP_TEMP_FILES=true" to a sudo command - the command is run as 'mfg' in it's own login environment and no KEEP_TEMP_FILES is set.
(mfg) /bin/bash -c /usr/local/yab/yab -a\:/qond/apps/mfgpro *data-xml*
Thanks,
Tim
Hi Tim,
Unfortunately there is no solution here. I followed up internally with some Cloud folks and they have confirmed this also.
Thanks,
Niall
Tim Collins, modified 3 Years ago.
Re: KEEP_TEMP_FILES with QAD Cloud
Post Date: 3/29/23 (Bronze, 5 Posts) Recent PostsThank you Niall. I assumed as much, but thought I'd ask. There is a mechanism that makes perfect sense, just doesn't work if sudo is at play.
Hope you guys are all doing well.
Message place holder
Forums