ples work

This commit is contained in:
Lee 2023-07-04 17:28:09 +01:00
parent 3ead2f2c8e
commit f94034e70e

View File

@ -13,8 +13,6 @@ fi
# Start php dep
echo "Starting PHP"
service php8.1-fpm start
# I don't know how to fix this properly, but it works.
chmod 777 /run/php/php8.1-fpm.sock
echo "Setting max upload size to ${MAX_UPLOAD_SIZE}"
sed -i "s/^upload_max_filesize = .*/upload_max_filesize = ${MAX_UPLOAD_SIZE}/" /etc/php/8.1/fpm/php.ini
@ -24,6 +22,9 @@ sed -i "s/^post_max_size = .*/post_max_size = ${MAX_UPLOAD_SIZE}/" /etc/php/8.1/
echo "Restarting PHP to apply changes for max upload size"
service php8.1-fpm restart
# I don't know how to fix this properly, but it works.
chmod 777 /run/php/php8.1-fpm.sock
# Start Nginx
echo "Starting Nginx"
nginx -g "daemon off;"