Files
hassio-addons/baikal/rootfs/etc/cont-init.d/90-run.sh
2025-07-23 08:58:09 +00:00

14 lines
301 B
Bash
Executable File

#!/bin/bash
# Copy data
cp -rnf /var/www/baikal/* /data/
# Fix permissions
chown -R nginx:nginx /data
# Start app
# Find the PHP FPM service script and start it
find /etc/init.d -type f -name "php*-fpm" -exec {} start \; \
&& chown -R nginx:nginx /data/Specific \
&& nginx -g "daemon off;"