Export of what? The ARTIFACTORY_HOME is exported through /etc/profile.d/artifactory.sh. It is in the environment. Besides, if it does happen and you are aware that it does, why isn't it mentioned in the documentation?
-aaron freddy33 wrote: > > This usually happens because the "su" execution in the script change > user context without passing the environment variables. > To solve it you can add the export in /etc/profile (a little brutal) > or do like in our scripts: create a /etc/artifactory/default script > containing artifactory and java home, and we add ". > /etc/artifactory/default" in tomcat/bin/setenv.sh script. > > HTH > Fred. > > On 12/9/09, passogiau <[email protected]> wrote: >> >> Greetings, >> >> I'm attempting to deploy Artifactory in my Tomcat container. >> ARTIFACTORY_HOME is set system wide: >> >> http://www.linuxtopia.org/online_books/linux_beginner_books/unofficial_ubuntu_starter_guide/index_159.htmlr...@gavia:/opt# >> whoami >> root >> r...@gavia:/opt# echo $ARTIFACTORY_HOME >> /home/artifactory >> r...@gavia:/opt# cat /etc/profile.d/artifactory.sh >> export ARTIFACTORY_HOME=/home/artifactory >> >> >> And yet from the tail -200 /var/lib/tomcat6/logs/localhost.2009-12-08.log >> >> INFO: Using artifactory.home at '/usr/share/tomcat6/.artifactory'. >> >> Dec 8, 2009 7:56:27 PM org.apache.catalina.core.StandardContext >> listenerStart >> >> SEVERE: Exception sending context initialized event to listener instance >> of >> class org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener >> java.lang.IllegalArgumentException: Could not initialize artifactory main >> directory due to: Unable to create directory >> /usr/share/tomcat6/.artifactory/etc >> http://www.linuxtopia.org/online_books/linux_beginner_books/unofficial_ubuntu_starter_guide/index_159.html >> -- >> View this message in context: >> http://old.nabble.com/ARTIFACTORY_HOME-is-ignored-tp26703627p26703627.html >> Sent from the Artifactory-Users mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Return on Information: >> Google Enterprise Search pays you back >> Get the facts. >> http://p.sf.net/sfu/google-dev2dev >> _______________________________________________ >> Artifactory-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/artifactory-users >> > > > -- > Co. Founder and Chief Architect > JFrog Ltd > http://www.jfrog.org/ > http://twitter.com/freddy33 > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Artifactory-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/artifactory-users > > -- View this message in context: http://old.nabble.com/ARTIFACTORY_HOME-is-ignored-tp26703627p26709093.html Sent from the Artifactory-Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
