-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:laravel/homestead into main
- Loading branch information
Showing
23 changed files
with
167 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
if [ -f ~/.homestead-features/wsl_user_name ]; then | ||
WSL_USER_NAME="$(cat ~/.homestead-features/wsl_user_name)" | ||
WSL_USER_GROUP="$(cat ~/.homestead-features/wsl_user_group)" | ||
else | ||
WSL_USER_NAME=vagrant | ||
WSL_USER_GROUP=vagrant | ||
fi | ||
|
||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
if [ -f /home/$WSL_USER_NAME/.homestead-features/meilisearch ] | ||
then | ||
echo "meilisearch already installed." | ||
exit 0 | ||
fi | ||
|
||
touch /home/$WSL_USER_NAME/.homestead-features/meilisearch | ||
chown -Rf $WSL_USER_NAME:$WSL_USER_GROUP /home/$WSL_USER_NAME/.homestead-features | ||
|
||
# add the sources for meilisearch | ||
echo "deb [trusted=yes] https://apt.fury.io/meilisearch/ /" > /etc/apt/sources.list.d/fury.list | ||
|
||
# update apt and install meilisearch | ||
apt-get update && apt-get install meilisearch-http | ||
|
||
# Create a service file | ||
cat > /etc/systemd/system/meilisearch.service << EOF | ||
[Unit] | ||
Description=MeiliSearch | ||
After=systemd-user-sessions.service | ||
[Service] | ||
Type=simple | ||
ExecStart=meilisearch | ||
[Install] | ||
WantedBy=default.target | ||
EOF | ||
|
||
# Set the service meilisearch | ||
systemctl daemon-reload | ||
systemctl enable meilisearch | ||
|
||
# Start the meilisearch service | ||
systemctl start meilisearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -f ~/.homestead-features/wsl_user_name ]; then | ||
WSL_USER_NAME="$(cat ~/.homestead-features/wsl_user_name)" | ||
WSL_USER_GROUP="$(cat ~/.homestead-features/wsl_user_group)" | ||
else | ||
WSL_USER_NAME=vagrant | ||
WSL_USER_GROUP=vagrant | ||
fi | ||
|
||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
if [ -f /home/$WSL_USER_NAME/.homestead-features/trader ] | ||
then | ||
echo "Trader PHP extension already installed." | ||
exit 0 | ||
fi | ||
|
||
touch /home/$WSL_USER_NAME/.homestead-features/trader | ||
|
||
# Update PECL Channel | ||
sudo pecl channel-update pecl.php.net | ||
|
||
# Install Trader Extension | ||
sudo pecl install trader | ||
|
||
sudo cp /usr/lib/php/20190902/trader.so /usr/lib/php/20131226/trader.so | ||
sudo cp /usr/lib/php/20190902/trader.so /usr/lib/php/20151012/trader.so | ||
sudo cp /usr/lib/php/20190902/trader.so /usr/lib/php/20160303/trader.so | ||
sudo cp /usr/lib/php/20190902/trader.so /usr/lib/php/20170718/trader.so | ||
sudo cp /usr/lib/php/20190902/trader.so /usr/lib/php/20180731/trader.so | ||
sudo cp /usr/lib/php/20190902/trader.so /usr/lib/php/20200930/trader.so | ||
|
||
sudo touch /etc/php/8.0/mods-available/trader.ini | ||
sudo bash -c 'echo "extension=trader.so" >> /etc/php/8.0/mods-available/trader.ini' | ||
sudo ln -s /etc/php/8.0/mods-available/trader.ini /etc/php/8.0/fpm/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/8.0/mods-available/trader.ini /etc/php/8.0/cgi/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/8.0/mods-available/trader.ini /etc/php/8.0/cli/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/8.0/mods-available/trader.ini /etc/php/8.0/phpdbg/conf.d/20-trader.ini | ||
|
||
sudo touch /etc/php/7.4/mods-available/trader.ini | ||
sudo bash -c 'echo "extension=trader.so" >> /etc/php/7.4/mods-available/trader.ini' | ||
sudo ln -s /etc/php/7.4/mods-available/trader.ini /etc/php/7.4/fpm/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.4/mods-available/trader.ini /etc/php/7.4/cgi/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.4/mods-available/trader.ini /etc/php/7.4/cli/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.4/mods-available/trader.ini /etc/php/7.4/phpdbg/conf.d/20-trader.ini | ||
|
||
sudo touch /etc/php/7.3/mods-available/trader.ini | ||
sudo bash -c 'echo "extension=trader.so" >> /etc/php/7.3/mods-available/trader.ini' | ||
sudo ln -s /etc/php/7.3/mods-available/trader.ini /etc/php/7.3/fpm/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.3/mods-available/trader.ini /etc/php/7.3/cgi/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.3/mods-available/trader.ini /etc/php/7.3/cli/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.3/mods-available/trader.ini /etc/php/7.3/phpdbg/conf.d/20-trader.ini | ||
|
||
sudo touch /etc/php/7.2/mods-available/trader.ini | ||
sudo bash -c 'echo "extension=trader.so" >> /etc/php/7.2/mods-available/trader.ini' | ||
sudo ln -s /etc/php/7.2/mods-available/trader.ini /etc/php/7.2/fpm/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.2/mods-available/trader.ini /etc/php/7.2/cgi/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.2/mods-available/trader.ini /etc/php/7.2/cli/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.2/mods-available/trader.ini /etc/php/7.2/phpdbg/conf.d/20-trader.ini | ||
|
||
sudo touch /etc/php/7.1/mods-available/trader.ini | ||
sudo bash -c 'echo "extension=trader.so" >> /etc/php/7.1/mods-available/trader.ini' | ||
sudo ln -s /etc/php/7.1/mods-available/trader.ini /etc/php/7.1/fpm/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.1/mods-available/trader.ini /etc/php/7.1/cgi/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.1/mods-available/trader.ini /etc/php/7.1/cli/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.1/mods-available/trader.ini /etc/php/7.1/phpdbg/conf.d/20-trader.ini | ||
|
||
sudo touch /etc/php/7.0/mods-available/trader.ini | ||
sudo bash -c 'echo "extension=trader.so" >> /etc/php/7.0/mods-available/trader.ini' | ||
sudo ln -s /etc/php/7.0/mods-available/trader.ini /etc/php/7.0/fpm/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.0/mods-available/trader.ini /etc/php/7.0/cgi/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.0/mods-available/trader.ini /etc/php/7.0/cli/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/7.0/mods-available/trader.ini /etc/php/7.0/phpdbg/conf.d/20-trader.ini | ||
|
||
sudo touch /etc/php/5.6/mods-available/trader.ini | ||
sudo bash -c 'echo "extension=trader.so" >> /etc/php/5.6/mods-available/trader.ini' | ||
sudo ln -s /etc/php/5.6/mods-available/trader.ini /etc/php/5.6/fpm/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/5.6/mods-available/trader.ini /etc/php/5.6/cgi/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/5.6/mods-available/trader.ini /etc/php/5.6/cli/conf.d/20-trader.ini | ||
sudo ln -s /etc/php/5.6/mods-available/trader.ini /etc/php/5.6/phpdbg/conf.d/20-trader.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ server { | |
index index.php; | ||
charset utf-8; | ||
client_max_body_size 100M; | ||
$rewritesTXT | ||
location / { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ block="server { | |
charset utf-8; | ||
client_max_body_size 100M; | ||
$rewritesTXT | ||
location / { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ server { | |
server_name $1; | ||
root \"$2\"; | ||
client_max_body_size 100M; | ||
index index.php; | ||
access_log off; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ block="server { | |
index index.html; | ||
charset utf-8; | ||
client_max_body_size 100M; | ||
$rewritesTXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,7 @@ block="server { | |
root \"$2\"; | ||
charset utf-8; | ||
client_max_body_size 100M; | ||
index index.php index.html; | ||
|