Skip to content

Commit

Permalink
Update unypkg-openlitespeed-build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
michacassola committed Aug 13, 2024
1 parent 61e0246 commit 76c675f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions unypkg-openlitespeed-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ git_clone_source_repo

cd "$pkgname" || exit

wget -O dist/admin/html.open/lib/jCryption.php https://raw.githubusercontent.com/unysrc/openlitespeed/php-8-fixes/dist/admin/html.open/lib/jCryption.php

if [ -e lsquic ]; then
ls src/ | grep liblsquic
if [ $? -eq 0 ]; then
if ls src/ | grep liblsquic; then
echo Need to git download the submodule ...
rm -rf lsquic
git clone https://github.com/litespeedtech/lsquic.git
Expand Down Expand Up @@ -259,8 +260,6 @@ cp -a dist/* "$SERVERROOT"
ln -s ../bin/ols_php "$SERVERROOT"/fcgi-bin/lsphp
ln -s ../../bin/ols_php "$SERVERROOT"/admin/fcgi-bin/admin_php
wget -O "$SERVERROOT"/admin/html.open/lib/jCryption.php https://raw.githubusercontent.com/unysrc/openlitespeed/php-8-fixes/dist/admin/html.open/lib/jCryption.php
ENCRYPT_PASS=$("$SERVERROOT/admin/fcgi-bin/admin_php" -q "$SERVERROOT/admin/misc/htpasswd.php" "$OPENLSWS_PASSWORD")
echo "$OPENLSWS_ADMIN:$ENCRYPT_PASS" >"$SERVERROOT/admin/conf/htpasswd"
Expand Down

0 comments on commit 76c675f

Please sign in to comment.