From d775547dfd361c1b5d364fffaddcfc7b4be26413 Mon Sep 17 00:00:00 2001 From: Memo <58190287+memo-567@users.noreply.github.com> Date: Fri, 8 Apr 2022 06:57:11 +0200 Subject: [PATCH] Update _common.sh --- scripts/_common.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 0d8107b..b6b90fe 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -20,6 +20,12 @@ pkg_dependencies="php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-mysql php${YNH # PERSONAL HELPERS #================================================= +function set_permissions { + # Set permissions to app files + chown -R $app:www-data $final_path + chmod -R g=u,g-w,o-rwx $final_path +} + #================================================= # EXPERIMENTAL HELPERS #=================================================