You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/12/29 14:11:49 UTC
[jira] [Commented] (KARAF-4241) Karaf clean doesn't work if
KARAF_DATA and KARAF_BASE point to same dir
[ https://issues.apache.org/jira/browse/KARAF-4241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15073878#comment-15073878 ]
ASF GitHub Bot commented on KARAF-4241:
---------------------------------------
GitHub user dvanherbergen opened a pull request:
https://github.com/apache/karaf/pull/125
[KARAF-4241] Karaf clean doesn't work if KARAF_DATA and KARAF_BASE point to same dir
Delete only the content of KARAF_DATA and not the folder itself when starting with clean option.
Signed-off-by: Davy Vanherbergen <da...@gmail.com>
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dvanherbergen/karaf master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/karaf/pull/125.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #125
----
commit c6beae07723f00bc2fb00bf149d0a14a03a1caf6
Author: Davy Vanherbergen <da...@gmail.com>
Date: 2015-12-29T13:08:50Z
Delete only the content of KARAF_DATA and not the folder itself when starting with clean option.
Signed-off-by: Davy Vanherbergen <da...@gmail.com>
----
> Karaf clean doesn't work if KARAF_DATA and KARAF_BASE point to same dir
> -----------------------------------------------------------------------
>
> Key: KARAF-4241
> URL: https://issues.apache.org/jira/browse/KARAF-4241
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 4.0.3
> Reporter: Davy Vanherbergen
> Priority: Minor
>
> When Karaf is configured with KARAF_DATA and KARAF_BASE pointing to the same directory, Karaf doesn't start when issueing the {{./start clean}} command.
> The clean option executes a {{rm -Rf "$KARAF_DATA"}} which deletes the data directory. After this Karaf refuses to start because it cannot find the base directory (which is the same).
> It would be better if the clean option would only delete the directory content and not the folder itself, e.g. using {{rm -Rf "$KARAF_DATA/**"}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)