artifactoryctl script doesn't work on solaris

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

artifactoryctl script doesn't work on solaris

Jorg Heymans-4
Hi,

The artifactoryctl script does not work on systems that don't have /bin/sh linked to /bin/bash (e.g. solaris). In particular, you cannot do 'export VAR=VALUE' on these systems and assume it to work, one should always do 'VAR=VALUE; export VAR' . The latter syntax works on bash as well, so it would be better to make it the default in all scripts.

--- ./bin/artifactoryctl        Fri Apr 13 02:09:44 2007
+++ ../artifactory-1.2.1-rc0-original/bin/artifactoryctl        Fri Apr 13 15:01:18 2007
@@ -477,9 +477,9 @@
 # This is how the Artifactory server will be started
 #####################################################
 EXEC_FILE="$ARTIFACTORY_HOME/bin/artifactory.init"
-echo "export JAVA_OPTIONS=\"$JAVA_OPTIONS\"" > $EXEC_FILE
-echo "export JAVA_HOME=\"$JAVA_HOME\"" >> $EXEC_FILE
-echo "export ARTIFACTORY_HOME=\"$ARTIFACTORY_HOME\"" >> $EXEC_FILE
+echo "JAVA_OPTIONS=\"$JAVA_OPTIONS\" ; export JAVA_OPTIONS" > $EXEC_FILE
+echo "JAVA_HOME=\"$JAVA_HOME\" ; export JAVA_HOME" >> $EXEC_FILE
+echo "ARTIFACTORY_HOME=\"$ARTIFACTORY_HOME\" ; export ARTIFACTORY_HOME" >> $EXEC_FILE
 cat $ARTIFACTORY_HOME/${ARTIFACTORY_START_FILE} >> $EXEC_FILE
 if [ -n "$JETTY_USER" ]; then
        chown ${JETTY_USER} $EXEC_FILE


Thanks
Jorg
Reply | Threaded
Open this post in threaded view
|

Re: artifactoryctl script doesn't work on solaris

Yoav Landman
Administrator
Thanks for the patch. We will test and apply it.

On 4/18/07, Jorg Heymans <[hidden email]> wrote:
Hi,

The artifactoryctl script does not work on systems that don't have /bin/sh linked to /bin/bash ( e.g. solaris). In particular, you cannot do 'export VAR=VALUE' on these systems and assume it to work, one should always do 'VAR=VALUE; export VAR' . The latter syntax works on bash as well, so it would be better to make it the default in all scripts.

--- ./bin/artifactoryctl        Fri Apr 13 02:09:44 2007
+++ ../artifactory-1.2.1-rc0-original/bin/artifactoryctl        Fri Apr 13 15:01:18 2007
@@ -477,9 +477,9 @@
 # This is how the Artifactory server will be started
 #####################################################
 EXEC_FILE="$ARTIFACTORY_HOME/bin/artifactory.init"
-echo "export JAVA_OPTIONS=\"$JAVA_OPTIONS\"" > $EXEC_FILE
-echo "export JAVA_HOME=\"$JAVA_HOME\"" >> $EXEC_FILE
-echo "export ARTIFACTORY_HOME=\"$ARTIFACTORY_HOME\"" >> $EXEC_FILE
+echo "JAVA_OPTIONS=\"$JAVA_OPTIONS\" ; export JAVA_OPTIONS" > $EXEC_FILE
+echo "JAVA_HOME=\"$JAVA_HOME\" ; export JAVA_HOME" >> $EXEC_FILE
+echo "ARTIFACTORY_HOME=\"$ARTIFACTORY_HOME\" ; export ARTIFACTORY_HOME" >> $EXEC_FILE
 cat $ARTIFACTORY_HOME/${ARTIFACTORY_START_FILE} >> $EXEC_FILE
 if [ -n "$JETTY_USER" ]; then
        chown ${JETTY_USER} $EXEC_FILE


Thanks
Jorg

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://sourceforge.net/powerbar/db2/" target="_blank">http://sourceforge.net/powerbar/db2/
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank"> https://lists.sourceforge.net/lists/listinfo/artifactory-users