Skip to content

Commit 1ea3ab9

Browse files
committed
bombombom
1 parent 5a79f0a commit 1ea3ab9

12 files changed

Lines changed: 12 additions & 29 deletions

File tree

build-packages.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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 \

package/Caddyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

package/content/example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php
22
$requestCount = $i ?? 0;
33
$requestTime = $duration ?? 0;
44
?>

package/content/public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php
22

33
$i = 0;
44
$duration = 0;

package/debian/frankenphp.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

package/debian/postinst.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
#!/bin/sh
1+
#!/bin/sh
22
set -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-
124
if [ "$1" = "configure" ]; then
135
# Add user and group
146
if ! getent group frankenphp >/dev/null; then

package/debian/postrm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/sh
22
set -e
33

44
if [ -d /run/systemd/system ]; then

package/rhel/frankenphp.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[Unit]
1+
[Unit]
22
Description=FrankenPHP server
33
After=network.target
44

package/rhel/postinstall.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
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

113
if [ "$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
1911
fi
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 || :

package/rhel/postuninstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash
22

33
if [ "$1" -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then
44
# Package upgrade, not uninstall

0 commit comments

Comments
 (0)