Skip to content

Commit

Permalink
set owner of app_homedir to app_user
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Schleizer committed Oct 29, 2020
1 parent 7422542 commit 38fc2ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usr/bin/sandbox-app-launcher
Expand Up @@ -98,6 +98,10 @@ setup() {
mkdir --parents "${app_homedir}"
fi

if ! [ "$(stat -c "%U" "${app_homedir}")" = "700" ]; then
chown --recursive "${app_user}" "${app_homedir}"
fi

if ! [ "$(stat -c %a "${app_homedir}")" = "700" ]; then
chmod 700 -R "${app_homedir}"
fi
Expand Down

0 comments on commit 38fc2ab

Please sign in to comment.