Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jmxtrans/jmxtrans
Browse files Browse the repository at this point in the history
  • Loading branch information
stokpop committed Aug 12, 2015
2 parents 283d421 + b636958 commit c89bd56
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jmxtrans/pom.xml
Expand Up @@ -321,8 +321,9 @@
<script>if [ $1 = 1 ]; then
USER_ID=`id -u %{package.user} 2&gt;/dev/null`
if [ -z "$USER_ID" ]; then
groupadd -f ${package.user}
/usr/sbin/useradd -c "${project.name}" -s /bin/sh -r -d \
${package.install.dir} -U ${package.user}
${package.install.dir} -G ${package.user} ${package.user}
fi
fi</script>
</preinstallScriptlet>
Expand Down
2 changes: 1 addition & 1 deletion jmxtrans/src/deb/control/preinst
Expand Up @@ -5,7 +5,7 @@ set -e
case "$1" in
install)
if ! id jmxtrans > /dev/null 2>&1 ; then
adduser --system --shell /bin/bash --home /home/jmxtrans --disabled-login --disabled-password --group jmxtrans
adduser --system --shell /bin/bash --home /usr/share/jmxtrans --disabled-login --disabled-password --group jmxtrans
fi
;;
upgrade|abort-upgrade)
Expand Down
20 changes: 20 additions & 0 deletions pom.xml
Expand Up @@ -1078,6 +1078,26 @@
</pluginManagement>
</build>
</profile>
<profile>
<id>jdk_higher_or_equal_than_8</id>
<activation>
<activeByDefault>false</activeByDefault>
<jdk>[1.8,)</jdk>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>

</project>

0 comments on commit c89bd56

Please sign in to comment.