Skip to content

Commit a26067a

Browse files
committed
formatting?
1 parent d2e9742 commit a26067a

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

install.sh

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -26,43 +26,43 @@ fi
2626

2727
case ${OS} in
2828
Linux*)
29-
if command -v dnf >/dev/null 2>&1; then
30-
echo "📦 Detected dnf. Installing FrankenPHP from RPM repository..."
31-
if [ -n "${SUDO}" ]; then
32-
echo "❗ Enter your password to grant sudo powers for package installation"
33-
${SUDO} -v || true
34-
fi
35-
${SUDO} dnf -y install https://rpm.henderkes.com/static-php-1-0.noarch.rpm
36-
${SUDO} dnf -y module enable php-zts:static-8.4 || true
37-
${SUDO} dnf -y install frankenphp
38-
echo
39-
echo "🥳 FrankenPHP installed successfully"
40-
echo
41-
echo "⭐ If you like FrankenPHP, please give it a star on GitHub: ${italic}https://github.com/php/frankenphp${normal}"
42-
exit 0
29+
if command -v dnf >/dev/null 2>&1; then
30+
echo "📦 Detected dnf. Installing FrankenPHP from RPM repository..."
31+
if [ -n "${SUDO}" ]; then
32+
echo "❗ Enter your password to grant sudo powers for package installation"
33+
${SUDO} -v || true
4334
fi
35+
${SUDO} dnf -y install https://rpm.henderkes.com/static-php-1-0.noarch.rpm
36+
${SUDO} dnf -y module enable php-zts:static-8.4 || true
37+
${SUDO} dnf -y install frankenphp
38+
echo
39+
echo "🥳 FrankenPHP installed successfully"
40+
echo
41+
echo "⭐ If you like FrankenPHP, please give it a star on GitHub: ${italic}https://github.com/php/frankenphp${normal}"
42+
exit 0
43+
fi
4444

45-
if command -v apt >/dev/null 2>&1 || command -v apt-get >/dev/null 2>&1; then
46-
echo "📦 Detected apt. Installing FrankenPHP from DEB repository..."
47-
if [ -n "${SUDO}" ]; then
48-
echo "❗ Enter your password to grant sudo powers for package installation"
49-
${SUDO} -v || true
50-
fi
51-
${SUDO} sh -c 'curl -fsSL https://key.henderkes.com/static-php.gpg -o /usr/share/keyrings/static-php.gpg'
52-
${SUDO} sh -c 'echo "deb [signed-by=/usr/share/keyrings/static-php.gpg] https://deb.henderkes.com/ stable main" > /etc/apt/sources.list.d/static-php.list'
53-
if command -v apt >/dev/null 2>&1; then
54-
${SUDO} apt update
55-
${SUDO} apt -y install frankenphp
56-
else
57-
${SUDO} apt-get update
58-
${SUDO} apt-get -y install frankenphp
59-
fi
60-
echo
61-
echo "🥳 FrankenPHP installed successfully."
62-
echo
63-
echo "⭐ If you like FrankenPHP, please give it a star on GitHub: ${italic}https://github.com/php/frankenphp${normal}"
64-
exit 0
45+
if command -v apt >/dev/null 2>&1 || command -v apt-get >/dev/null 2>&1; then
46+
echo "📦 Detected apt. Installing FrankenPHP from DEB repository..."
47+
if [ -n "${SUDO}" ]; then
48+
echo "❗ Enter your password to grant sudo powers for package installation"
49+
${SUDO} -v || true
50+
fi
51+
${SUDO} sh -c 'curl -fsSL https://key.henderkes.com/static-php.gpg -o /usr/share/keyrings/static-php.gpg'
52+
${SUDO} sh -c 'echo "deb [signed-by=/usr/share/keyrings/static-php.gpg] https://deb.henderkes.com/ stable main" > /etc/apt/sources.list.d/static-php.list'
53+
if command -v apt >/dev/null 2>&1; then
54+
${SUDO} apt update
55+
${SUDO} apt -y install frankenphp
56+
else
57+
${SUDO} apt-get update
58+
${SUDO} apt-get -y install frankenphp
6559
fi
60+
echo
61+
echo "🥳 FrankenPHP installed successfully."
62+
echo
63+
echo "⭐ If you like FrankenPHP, please give it a star on GitHub: ${italic}https://github.com/php/frankenphp${normal}"
64+
exit 0
65+
fi
6666

6767
case ${ARCH} in
6868
aarch64)

0 commit comments

Comments
 (0)