Skip to content

Commit

Permalink
fix: error "no such file or directory" on user-patches.sh
Browse files Browse the repository at this point in the history
find: ‘/tmp/docker-mailserver/webapi’: No such file or directory
  • Loading branch information
bramanda48 committed Mar 15, 2024
1 parent ba1085b commit 3c67cda
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/user-patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ function do_patch() {
fi

# Remove old scripts
find "${DMS_CONFIG}/webapi" -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} +
find "${DMS_CONFIG}/webapi" -mindepth 1 -maxdepth 1 -type f ! -name ".env" -delete
if [ -d "${DMS_CONFIG}/webapi" ]; then
find "${DMS_CONFIG}/webapi" -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} +
find "${DMS_CONFIG}/webapi" -mindepth 1 -maxdepth 1 -type f ! -name ".env" -delete
fi

# Unzip the file
unzip docker-mailserver-webapi.zip -d "${DMS_CONFIG}/webapi"
Expand Down

0 comments on commit 3c67cda

Please sign in to comment.