|
37 | 37 | <stringParameter name="value"/>
|
38 | 38 | </parameterList>
|
39 | 39 | </actionDefinition>
|
40 |
| - <actionDefinition name="fnAddLinuxEnvironmentVariable"> |
41 |
| - <parameterList> |
42 |
| - <stringParameter name="name"/> |
43 |
| - <stringParameter name="value"/> |
44 |
| - <stringParameter name="scope" default="user"/> |
45 |
| - </parameterList> |
46 |
| - <actionList> |
47 |
| - <if> |
48 |
| - <conditionRuleList> |
49 |
| - <platformTest type="linux"/> |
50 |
| - <compareText logic="equals" text="${scope}" value="system"/> |
51 |
| - </conditionRuleList> |
52 |
| - <actionList> |
53 |
| - <!-- InstallBuilder's system-wide Linux implementation does not work (it always writes to the user |
54 |
| - environment files like ~/.bashrc and ~/.bash_profile, even as root). |
55 |
| - Instead, we cache all environment variables in a global variable, and in the post-installation |
56 |
| - steps, we generate a file in /etc/profile.d/ that will get sourced on login. --> |
57 |
| - <globalVariables names="_fnAddEnvironmentVariable_list"/> |
58 |
| - <setInstallerVariable name="_fnAddEnvironmentVariable_list"> |
59 |
| - <value>${_fnAddEnvironmentVariable_list}export ${name}=${value}
</value> |
60 |
| - </setInstallerVariable> |
61 |
| - </actionList> |
62 |
| - <elseActionList> |
63 |
| - <!-- Pass through to InstallBuilder implementation --> |
64 |
| - <addEnvironmentVariable name="${name}" value="${value}" scope="${scope}"/> |
65 |
| - </elseActionList> |
66 |
| - </if> |
67 |
| - </actionList> |
68 |
| - </actionDefinition> |
69 | 40 | <actionDefinition name="fnAddPathEnvironmentVariable">
|
70 | 41 | <!-- Adds a PATH-like environment variable with options to add to the end or beginning of the PATH -->
|
71 | 42 | <parameterList>
|
|
106 | 77 | </setInstallerVariable>
|
107 | 78 | </elseActionList>
|
108 | 79 | </if>
|
109 |
| - <fnAddLinuxEnvironmentVariable name="${name}" value="${new_value}" scope="${scope}"/> |
110 |
| - </actionList> |
111 |
| - </actionDefinition> |
112 |
| - <actionDefinition name="fnAddDirectoryToLinuxPath"> |
113 |
| - <!-- This just exists to handle the system-wide Linux implementation (see fnAddLinuxEnvironmentVariable) --> |
114 |
| - <parameterList> |
115 |
| - <stringParameter name="insertAt" default="end"/> |
116 |
| - <stringParameter name="path"/> |
117 |
| - <stringParameter name="scope" default="system"/> |
118 |
| - </parameterList> |
119 |
| - <actionList> |
120 |
| - <if> |
121 |
| - <conditionRuleList> |
122 |
| - <platformTest type="linux"/> |
123 |
| - <compareText logic="equals" text="${scope}" value="system"/> |
124 |
| - </conditionRuleList> |
125 |
| - <actionList> |
126 |
| - <fnAddLinuxEnvironmentVariable name="PATH" value="$PATH:${path}" scope="${scope}"/> |
127 |
| - </actionList> |
128 |
| - <elseActionList> |
129 |
| - <addDirectoryToPath insertAt="${insertAt}" path="${path}" scope="${scope}"/> |
130 |
| - </elseActionList> |
131 |
| - </if> |
| 80 | + <addEnvironmentVariable name="${name}" value="${new_value}" scope="${scope}"/> |
132 | 81 | </actionList>
|
133 | 82 | </actionDefinition>
|
134 | 83 | </functionDefinitionList>
|
|
0 commit comments