diff --git a/deploy_app.sh b/deploy_app.sh
index 359aa39d4bd79df2021afbc5c72e860261db8dbf..2e8c57ef4c611daabb7dcf7bb074ab87c832f47c 100755
--- a/deploy_app.sh
+++ b/deploy_app.sh
@@ -233,7 +233,8 @@ function deploy(){
         echo $skipmessage
     else
         if [ ! -z "${appowner}" ]; then
-            sudo chown -R $appowner * .* || exit 5
+            # . is ${installdir}
+            sudo chown -R $appowner . || exit 5
             ls -la
         else
             echo "SKIP: variable appowner was not set"