mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
加入php安装
This commit is contained in:
19
backend/scripts/install-dotnet.sh
Executable file
19
backend/scripts/install-dotnet.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
# lock global
|
||||
touch /tmp/install.lock
|
||||
|
||||
# lock
|
||||
touch /tmp/install-dotnet.lock
|
||||
|
||||
apt-get install curl
|
||||
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
|
||||
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
|
||||
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-artful-prod artful main" > /etc/apt/sources.list.d/dotnetdev.list'
|
||||
apt-get install apt-transport-https
|
||||
apt-get update
|
||||
apt-get install dotnet-sdk-2.1
|
||||
|
||||
# unlock global
|
||||
rm /tmp/install.lock
|
||||
|
||||
# unlock
|
||||
rm /tmp/install-dotnet.lock
|
||||
13
backend/scripts/install-php.sh
Executable file
13
backend/scripts/install-php.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
# lock global
|
||||
touch /tmp/install.lock
|
||||
|
||||
# lock
|
||||
touch /tmp/install-php.lock
|
||||
|
||||
apt-get install php
|
||||
|
||||
# unlock global
|
||||
rm /tmp/install.lock
|
||||
|
||||
# unlock
|
||||
rm /tmp/install-php.lock
|
||||
@@ -15,3 +15,11 @@ then
|
||||
/bin/sh /app/backend/scripts/install-java.sh
|
||||
echo "installed java"
|
||||
fi
|
||||
|
||||
# install dotnet
|
||||
if [ "${CRAWLAB_SERVER_LANG_DOTNET}" = "Y" ];
|
||||
then
|
||||
echo "installing dotnet"
|
||||
/bin/sh /app/backend/scripts/install-dotnet.sh
|
||||
echo "installed dotnet"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user