You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Davy Vanherbergen (JIRA)" <ji...@apache.org> on 2015/12/29 13:32:49 UTC

[jira] [Updated] (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:all-tabpanel ]

Davy Vanherbergen updated KARAF-4241:
-------------------------------------
    Description: 
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/**"}}.

  was:
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/**}}.


> 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)