mirror of
https://github.com/cytopia/devilbox.git
synced 2025-04-07 19:14:20 +00:00
Add examples for how to install Ms ODBC after accepting the license
This commit is contained in:
parent
3260e68c90
commit
8f38cbd736
6
cfg/php-startup-5.2/01-update-apt-index.sh-example
Executable file
6
cfg/php-startup-5.2/01-update-apt-index.sh-example
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Simple example showing how to update the packet index
|
||||
#
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update -q
|
13
cfg/php-startup-5.2/README.md
Normal file
13
cfg/php-startup-5.2/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Custom startup scripts
|
||||
|
||||
Any script inside this directory ending by `.sh` will be executed during the PHP container startup.
|
||||
This is useful to apply your custom settings such as installing software that usually requires
|
||||
the user to accept a license or similar.
|
||||
|
||||
A few examples are given that do not end by `.sh` which won't be run. If you want to use the
|
||||
provided examples, copy them to a file ending by `.sh`
|
||||
|
||||
|
||||
## Important
|
||||
|
||||
All provided scripts will be executed with **root** permissions.
|
6
cfg/php-startup-5.3/01-update-apt-index.sh-example
Executable file
6
cfg/php-startup-5.3/01-update-apt-index.sh-example
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Simple example showing how to update the packet index
|
||||
#
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update -q
|
13
cfg/php-startup-5.3/README.md
Normal file
13
cfg/php-startup-5.3/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Custom startup scripts
|
||||
|
||||
Any script inside this directory ending by `.sh` will be executed during the PHP container startup.
|
||||
This is useful to apply your custom settings such as installing software that usually requires
|
||||
the user to accept a license or similar.
|
||||
|
||||
A few examples are given that do not end by `.sh` which won't be run. If you want to use the
|
||||
provided examples, copy them to a file ending by `.sh`
|
||||
|
||||
|
||||
## Important
|
||||
|
||||
All provided scripts will be executed with **root** permissions.
|
6
cfg/php-startup-5.4/01-update-apt-index.sh-example
Executable file
6
cfg/php-startup-5.4/01-update-apt-index.sh-example
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Simple example showing how to update the packet index
|
||||
#
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update -q
|
13
cfg/php-startup-5.4/README.md
Normal file
13
cfg/php-startup-5.4/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Custom startup scripts
|
||||
|
||||
Any script inside this directory ending by `.sh` will be executed during the PHP container startup.
|
||||
This is useful to apply your custom settings such as installing software that usually requires
|
||||
the user to accept a license or similar.
|
||||
|
||||
A few examples are given that do not end by `.sh` which won't be run. If you want to use the
|
||||
provided examples, copy them to a file ending by `.sh`
|
||||
|
||||
|
||||
## Important
|
||||
|
||||
All provided scripts will be executed with **root** permissions.
|
6
cfg/php-startup-5.5/01-update-apt-index.sh-example
Executable file
6
cfg/php-startup-5.5/01-update-apt-index.sh-example
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Simple example showing how to update the packet index
|
||||
#
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update -q
|
13
cfg/php-startup-5.5/README.md
Normal file
13
cfg/php-startup-5.5/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Custom startup scripts
|
||||
|
||||
Any script inside this directory ending by `.sh` will be executed during the PHP container startup.
|
||||
This is useful to apply your custom settings such as installing software that usually requires
|
||||
the user to accept a license or similar.
|
||||
|
||||
A few examples are given that do not end by `.sh` which won't be run. If you want to use the
|
||||
provided examples, copy them to a file ending by `.sh`
|
||||
|
||||
|
||||
## Important
|
||||
|
||||
All provided scripts will be executed with **root** permissions.
|
6
cfg/php-startup-5.6/01-update-apt-index.sh-example
Executable file
6
cfg/php-startup-5.6/01-update-apt-index.sh-example
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Simple example showing how to update the packet index
|
||||
#
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update -q
|
13
cfg/php-startup-5.6/README.md
Normal file
13
cfg/php-startup-5.6/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Custom startup scripts
|
||||
|
||||
Any script inside this directory ending by `.sh` will be executed during the PHP container startup.
|
||||
This is useful to apply your custom settings such as installing software that usually requires
|
||||
the user to accept a license or similar.
|
||||
|
||||
A few examples are given that do not end by `.sh` which won't be run. If you want to use the
|
||||
provided examples, copy them to a file ending by `.sh`
|
||||
|
||||
|
||||
## Important
|
||||
|
||||
All provided scripts will be executed with **root** permissions.
|
6
cfg/php-startup-7.0/01-update-apt-index.sh-example
Executable file
6
cfg/php-startup-7.0/01-update-apt-index.sh-example
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Simple example showing how to update the packet index
|
||||
#
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update -q
|
55
cfg/php-startup-7.0/02-ms-odbc-driver.sh-example
Executable file
55
cfg/php-startup-7.0/02-ms-odbc-driver.sh-example
Executable file
@ -0,0 +1,55 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This script will automatically install the Microsoft ODBC driver for MsSQL
|
||||
# support for PHP during startup.
|
||||
#
|
||||
# In order for it to work, you must read and accept their License/EULA:
|
||||
# https://odbceula.blob.core.windows.net/eula17/LICENSE172.TXT
|
||||
#
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
# EDIT THE VARIABLE BELOW TO ACCEPT THE EULA (If you agree to their terms)
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
|
||||
###
|
||||
### Set this to "Y" (capital 'Y') if you accept the EULA.
|
||||
###
|
||||
ACCEPT_EULA=N
|
||||
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
# DO NOT EDIT BELOW THIS LINE
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
|
||||
###
|
||||
### Where to retrieve the deb package
|
||||
###
|
||||
MSODBC_URL="https://packages.microsoft.com/debian/8/prod/pool/main/m/msodbcsql17/"
|
||||
|
||||
|
||||
###
|
||||
### Pre-flight check
|
||||
###
|
||||
if [ "${ACCEPT_EULA}" != "Y" ]; then
|
||||
echo "MS ODBC EULA not accepted. Aborting installation."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
###
|
||||
### EULA accepted, so we can proceed
|
||||
###
|
||||
|
||||
# Extract latest *.deb packate
|
||||
MSODBC_DEB="$( curl -k -sS "${MSODBC_URL}" | grep -Eo 'msodbcsql[-._0-9]+?_amd64\.deb' | tail -1 )"
|
||||
|
||||
# Download to temporary location
|
||||
curl -k -sS "${MSODBC_URL}${MSODBC_DEB}" > "/tmp/${MSODBC_DEB}"
|
||||
|
||||
# Install
|
||||
ACCEPT_EULA="${ACCEPT_EULA}" dpkg -i "/tmp/${MSODBC_DEB}"
|
||||
|
||||
# Remove artifacts
|
||||
rm -f "/tmp/${MSODBC_DEB}"
|
13
cfg/php-startup-7.0/README.md
Normal file
13
cfg/php-startup-7.0/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Custom startup scripts
|
||||
|
||||
Any script inside this directory ending by `.sh` will be executed during the PHP container startup.
|
||||
This is useful to apply your custom settings such as installing software that usually requires
|
||||
the user to accept a license or similar.
|
||||
|
||||
A few examples are given that do not end by `.sh` which won't be run. If you want to use the
|
||||
provided examples, copy them to a file ending by `.sh`
|
||||
|
||||
|
||||
## Important
|
||||
|
||||
All provided scripts will be executed with **root** permissions.
|
6
cfg/php-startup-7.1/01-update-apt-index.sh-example
Executable file
6
cfg/php-startup-7.1/01-update-apt-index.sh-example
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Simple example showing how to update the packet index
|
||||
#
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update -q
|
55
cfg/php-startup-7.1/02-ms-odbc-driver.sh-example
Executable file
55
cfg/php-startup-7.1/02-ms-odbc-driver.sh-example
Executable file
@ -0,0 +1,55 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This script will automatically install the Microsoft ODBC driver for MsSQL
|
||||
# support for PHP during startup.
|
||||
#
|
||||
# In order for it to work, you must read and accept their License/EULA:
|
||||
# https://odbceula.blob.core.windows.net/eula17/LICENSE172.TXT
|
||||
#
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
# EDIT THE VARIABLE BELOW TO ACCEPT THE EULA (If you agree to their terms)
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
|
||||
###
|
||||
### Set this to "Y" (capital 'Y') if you accept the EULA.
|
||||
###
|
||||
ACCEPT_EULA=N
|
||||
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
# DO NOT EDIT BELOW THIS LINE
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
|
||||
###
|
||||
### Where to retrieve the deb package
|
||||
###
|
||||
MSODBC_URL="https://packages.microsoft.com/debian/8/prod/pool/main/m/msodbcsql17/"
|
||||
|
||||
|
||||
###
|
||||
### Pre-flight check
|
||||
###
|
||||
if [ "${ACCEPT_EULA}" != "Y" ]; then
|
||||
echo "MS ODBC EULA not accepted. Aborting installation."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
###
|
||||
### EULA accepted, so we can proceed
|
||||
###
|
||||
|
||||
# Extract latest *.deb packate
|
||||
MSODBC_DEB="$( curl -k -sS "${MSODBC_URL}" | grep -Eo 'msodbcsql[-._0-9]+?_amd64\.deb' | tail -1 )"
|
||||
|
||||
# Download to temporary location
|
||||
curl -k -sS "${MSODBC_URL}${MSODBC_DEB}" > "/tmp/${MSODBC_DEB}"
|
||||
|
||||
# Install
|
||||
ACCEPT_EULA="${ACCEPT_EULA}" dpkg -i "/tmp/${MSODBC_DEB}"
|
||||
|
||||
# Remove artifacts
|
||||
rm -f "/tmp/${MSODBC_DEB}"
|
13
cfg/php-startup-7.1/README.md
Normal file
13
cfg/php-startup-7.1/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Custom startup scripts
|
||||
|
||||
Any script inside this directory ending by `.sh` will be executed during the PHP container startup.
|
||||
This is useful to apply your custom settings such as installing software that usually requires
|
||||
the user to accept a license or similar.
|
||||
|
||||
A few examples are given that do not end by `.sh` which won't be run. If you want to use the
|
||||
provided examples, copy them to a file ending by `.sh`
|
||||
|
||||
|
||||
## Important
|
||||
|
||||
All provided scripts will be executed with **root** permissions.
|
6
cfg/php-startup-7.2/01-update-apt-index.sh-example
Executable file
6
cfg/php-startup-7.2/01-update-apt-index.sh-example
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Simple example showing how to update the packet index
|
||||
#
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update -q
|
55
cfg/php-startup-7.2/02-ms-odbc-driver.sh-example
Executable file
55
cfg/php-startup-7.2/02-ms-odbc-driver.sh-example
Executable file
@ -0,0 +1,55 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This script will automatically install the Microsoft ODBC driver for MsSQL
|
||||
# support for PHP during startup.
|
||||
#
|
||||
# In order for it to work, you must read and accept their License/EULA:
|
||||
# https://odbceula.blob.core.windows.net/eula17/LICENSE172.TXT
|
||||
#
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
# EDIT THE VARIABLE BELOW TO ACCEPT THE EULA (If you agree to their terms)
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
|
||||
###
|
||||
### Set this to "Y" (capital 'Y') if you accept the EULA.
|
||||
###
|
||||
ACCEPT_EULA=N
|
||||
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
# DO NOT EDIT BELOW THIS LINE
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
|
||||
###
|
||||
### Where to retrieve the deb package
|
||||
###
|
||||
MSODBC_URL="https://packages.microsoft.com/debian/8/prod/pool/main/m/msodbcsql17/"
|
||||
|
||||
|
||||
###
|
||||
### Pre-flight check
|
||||
###
|
||||
if [ "${ACCEPT_EULA}" != "Y" ]; then
|
||||
echo "MS ODBC EULA not accepted. Aborting installation."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
###
|
||||
### EULA accepted, so we can proceed
|
||||
###
|
||||
|
||||
# Extract latest *.deb packate
|
||||
MSODBC_DEB="$( curl -k -sS "${MSODBC_URL}" | grep -Eo 'msodbcsql[-._0-9]+?_amd64\.deb' | tail -1 )"
|
||||
|
||||
# Download to temporary location
|
||||
curl -k -sS "${MSODBC_URL}${MSODBC_DEB}" > "/tmp/${MSODBC_DEB}"
|
||||
|
||||
# Install
|
||||
ACCEPT_EULA="${ACCEPT_EULA}" dpkg -i "/tmp/${MSODBC_DEB}"
|
||||
|
||||
# Remove artifacts
|
||||
rm -f "/tmp/${MSODBC_DEB}"
|
13
cfg/php-startup-7.2/README.md
Normal file
13
cfg/php-startup-7.2/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Custom startup scripts
|
||||
|
||||
Any script inside this directory ending by `.sh` will be executed during the PHP container startup.
|
||||
This is useful to apply your custom settings such as installing software that usually requires
|
||||
the user to accept a license or similar.
|
||||
|
||||
A few examples are given that do not end by `.sh` which won't be run. If you want to use the
|
||||
provided examples, copy them to a file ending by `.sh`
|
||||
|
||||
|
||||
## Important
|
||||
|
||||
All provided scripts will be executed with **root** permissions.
|
6
cfg/php-startup-7.3/01-update-apt-index.sh-example
Executable file
6
cfg/php-startup-7.3/01-update-apt-index.sh-example
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Simple example showing how to update the packet index
|
||||
#
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update -q
|
55
cfg/php-startup-7.3/02-ms-odbc-driver.sh-example
Executable file
55
cfg/php-startup-7.3/02-ms-odbc-driver.sh-example
Executable file
@ -0,0 +1,55 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This script will automatically install the Microsoft ODBC driver for MsSQL
|
||||
# support for PHP during startup.
|
||||
#
|
||||
# In order for it to work, you must read and accept their License/EULA:
|
||||
# https://odbceula.blob.core.windows.net/eula17/LICENSE172.TXT
|
||||
#
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
# EDIT THE VARIABLE BELOW TO ACCEPT THE EULA (If you agree to their terms)
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
|
||||
###
|
||||
### Set this to "Y" (capital 'Y') if you accept the EULA.
|
||||
###
|
||||
ACCEPT_EULA=N
|
||||
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
# DO NOT EDIT BELOW THIS LINE
|
||||
# ------------------------------------------------------------------------------------------------
|
||||
|
||||
###
|
||||
### Where to retrieve the deb package
|
||||
###
|
||||
MSODBC_URL="https://packages.microsoft.com/debian/8/prod/pool/main/m/msodbcsql17/"
|
||||
|
||||
|
||||
###
|
||||
### Pre-flight check
|
||||
###
|
||||
if [ "${ACCEPT_EULA}" != "Y" ]; then
|
||||
echo "MS ODBC EULA not accepted. Aborting installation."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
###
|
||||
### EULA accepted, so we can proceed
|
||||
###
|
||||
|
||||
# Extract latest *.deb packate
|
||||
MSODBC_DEB="$( curl -k -sS "${MSODBC_URL}" | grep -Eo 'msodbcsql[-._0-9]+?_amd64\.deb' | tail -1 )"
|
||||
|
||||
# Download to temporary location
|
||||
curl -k -sS "${MSODBC_URL}${MSODBC_DEB}" > "/tmp/${MSODBC_DEB}"
|
||||
|
||||
# Install
|
||||
ACCEPT_EULA="${ACCEPT_EULA}" dpkg -i "/tmp/${MSODBC_DEB}"
|
||||
|
||||
# Remove artifacts
|
||||
rm -f "/tmp/${MSODBC_DEB}"
|
13
cfg/php-startup-7.3/README.md
Normal file
13
cfg/php-startup-7.3/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Custom startup scripts
|
||||
|
||||
Any script inside this directory ending by `.sh` will be executed during the PHP container startup.
|
||||
This is useful to apply your custom settings such as installing software that usually requires
|
||||
the user to accept a license or similar.
|
||||
|
||||
A few examples are given that do not end by `.sh` which won't be run. If you want to use the
|
||||
provided examples, copy them to a file ending by `.sh`
|
||||
|
||||
|
||||
## Important
|
||||
|
||||
All provided scripts will be executed with **root** permissions.
|
6
cfg/php-startup-7.4/01-update-apt-index.sh-example
Executable file
6
cfg/php-startup-7.4/01-update-apt-index.sh-example
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Simple example showing how to update the packet index
|
||||
#
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update -q
|
13
cfg/php-startup-7.4/README.md
Normal file
13
cfg/php-startup-7.4/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Custom startup scripts
|
||||
|
||||
Any script inside this directory ending by `.sh` will be executed during the PHP container startup.
|
||||
This is useful to apply your custom settings such as installing software that usually requires
|
||||
the user to accept a license or similar.
|
||||
|
||||
A few examples are given that do not end by `.sh` which won't be run. If you want to use the
|
||||
provided examples, copy them to a file ending by `.sh`
|
||||
|
||||
|
||||
## Important
|
||||
|
||||
All provided scripts will be executed with **root** permissions.
|
Loading…
x
Reference in New Issue
Block a user