File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ fpm -s dir -t deb -n frankenphp -v "${FRANKENPHP_VERSION}" \
9292 --config-files /etc/frankenphp/php.ini \
9393 --depends " libc6 (>= ${glibc_version} )" \
9494 --depends " libstdc++6 (>= ${cxxabi_version} )" \
95- --deb-suggests libcap2-bin \
9695 --after-install ../package/debian/postinst.sh \
9796 --before-remove ../package/debian/prerm.sh \
9897 --after-remove ../package/debian/postrm.sh \
Original file line number Diff line number Diff line change 1- # The Caddyfile is an easy way to configure your Caddy web server.
1+ # The Caddyfile is an easy way to configure your Caddy web server.
22#
33# https://caddyserver.com/docs/caddyfile
44# https://frankenphp.dev/docs/config
Original file line number Diff line number Diff line change 1- <?php
1+ <?php
22$ requestCount = $ i ?? 0 ;
33$ requestTime = $ duration ?? 0 ;
44?>
Original file line number Diff line number Diff line change 1- <?php
1+ <?php
22
33$ i = 0 ;
44$ duration = 0 ;
Original file line number Diff line number Diff line change 1- # See https://caddyserver.com/docs/install for instructions.
1+ # See https://caddyserver.com/docs/install for instructions.
22#
33# WARNING: This service does not use the --resume flag, so if you
44# use the API to make changes, they will be overwritten by the
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/sh
22set -e
33
4- if command -v setcap > /dev/null 2>&1 ; then
5- setcap ' cap_net_bind_service=+ep' /usr/bin/frankenphp || echo " Warning: failed to set capabilities on frankenphp"
6- echo " Users without root privileges will not be to run 'frankenphp php-server' on ports 80/443."
7- else
8- echo " Warning: setcap not found. Install it with: sudo apt install libcap2-bin"
9- echo " Users without root privileges will not be to run 'frankenphp php-server' on ports 80/443."
10- fi
11-
124if [ " $1 " = " configure" ]; then
135 # Add user and group
146 if ! getent group frankenphp > /dev/null; then
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/sh
22set -e
33
44if [ -d /run/systemd/system ]; then
Original file line number Diff line number Diff line change 1- [Unit]
1+ [Unit]
22Description =FrankenPHP server
33After =network.target
44
Original file line number Diff line number Diff line change 1- #! /bin/bash
2-
3- if command -v setcap > /dev/null 2>&1 ; then
4- setcap ' cap_net_bind_service=+ep' /usr/bin/frankenphp || echo " Warning: failed to set capabilities on frankenphp"
5- echo " Users without root privileges will not be to run 'frankenphp php-server' on ports 80/443."
6- else
7- echo " Warning: setcap not found. Install it with: sudo dnf install libcap"
8- echo " Users without root privileges will not be to run 'frankenphp php-server' on ports 80/443."
9- fi
1+ #! /bin/bash
102
113if [ " $1 " -eq 1 ] && [ -x " /usr/lib/systemd/systemd-update-helper" ]; then
124 # Initial installation
@@ -17,7 +9,7 @@ if [ -x /usr/sbin/getsebool ]; then
179 # connect to ACME endpoint to request certificates
1810 setsebool -P httpd_can_network_connect on
1911fi
20- if [ -x /usr/sbin/semanage -a -x /usr/sbin/restorecon ]; then
12+ if [ -x /usr/sbin/semanage ] && [ -x /usr/sbin/restorecon ]; then
2113 # file contexts
2214 semanage fcontext --add --type httpd_exec_t ' /usr/bin/frankenphp' 2> /dev/null || :
2315 semanage fcontext --add --type httpd_sys_content_t ' /usr/share/frankenphp(/.*)?' 2> /dev/null || :
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/bash
22
33if [ " $1 " -ge 1 ] && [ -x " /usr/lib/systemd/systemd-update-helper" ]; then
44 # Package upgrade, not uninstall
You can’t perform that action at this time.
0 commit comments