This repository has been archived on 2024-02-04. You can view files and clone it, but cannot push or open issues or pull requests.
flox-dockerized/rootfs/etc/cont-init.d/80-fix-perms

17 lines
443 B
Text
Raw Normal View History

2022-04-16 01:25:32 +02:00
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
# source env variables
source /etc/cont-init.d/20-setenv
2022-05-29 19:24:54 +02:00
app_path='/flox'
2022-04-16 01:25:32 +02:00
# fix permissions
2022-05-29 19:24:54 +02:00
find "${app_path}/" -type d -not -perm 775 -exec chmod 775 '{}' \+
find "${app_path}/" -type f -not -perm 664 -exec chmod 664 '{}' \+
2022-04-16 01:25:32 +02:00
2022-05-29 19:24:54 +02:00
find "${app_path}/" -not -user abc -exec chown abc '{}' \+
find "${app_path}/" -not -group abc -exec chown :abc '{}' \+
2022-04-16 01:25:32 +02:00
2022-05-29 19:24:54 +02:00
chmod +x "${app_path}/backend/artisan"