Skip to content

Commit

Permalink
Issue #203: ignore hidden file when checking whether /opt/otobo is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Jul 28, 2020
1 parent 4f2a7c2 commit 86bc5dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ function handle_docker_firsttime() {
if [ ! -d $OTOBO_HOME ]; then
# it is required that /opt/otobo is mounted
print_error "the volume $OTOBO_HOME is not mounted" && exit 1
elif [ ! "$(ls -A $OTOBO_HOME)" ]; then
elif [ ! "$(ls $OTOBO_HOME)" ]; then
# first the simple case: there is no previous installation
# use a simle 'ls' for checking dir content, hidden files like .bashrc are ignored
upgrade_patchlevel_release
else
if [ "$(compare_versions "$otobo_next/RELEASE" "$OTOBO_HOME/RELEASE")" = "1" ]; then
Expand Down

0 comments on commit 86bc5dc

Please sign in to comment.