From 6737a816ec8f30dfb1b01b410504edea44835935 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Mon, 13 May 2024 21:51:32 +0200 Subject: [PATCH] Run webpermissions task in background (no block) --- rootfs/etc/cont-init.d/99-webuser-permissions | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/cont-init.d/99-webuser-permissions b/rootfs/etc/cont-init.d/99-webuser-permissions index 4bf25b5..63ba3c3 100755 --- a/rootfs/etc/cont-init.d/99-webuser-permissions +++ b/rootfs/etc/cont-init.d/99-webuser-permissions @@ -1,5 +1,10 @@ #!/usr/bin/with-contenv sh set -e -/usr/local/bin/attr /var/www true www-data:www-data 0770 2771 -/usr/local/bin/attr /var/www/html/wp-content true www-data:www-data 2755 2755 \ No newline at end of file +main() { + /usr/local/bin/attr /var/www true www-data:www-data 0770 2771 + /usr/local/bin/attr /var/www/html/wp-content true www-data:www-data 2755 2755 +} + +main & +