mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-04-17 09:16:44 +02:00
generate dist
This commit is contained in:
parent
083a2d9a4d
commit
0e3cf187be
BIN
dist/antd_web_apps.tar.gz
vendored
BIN
dist/antd_web_apps.tar.gz
vendored
Binary file not shown.
@ -1,28 +1,30 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
# base server
|
|
||||||
wget -O- https://get.bitdojo.dev/antd | bash -s "1.0.6b"
|
|
||||||
# base plugin
|
|
||||||
wget -O- https://get.bitdojo.dev/antd_plugin | bash -s "lua-0.5.2b"
|
|
||||||
wget -O- https://get.bitdojo.dev/antd_plugin | bash -s "wterm-1.0.0b"
|
|
||||||
wget -O- https://get.bitdojo.dev/antd_plugin | bash -s "tunnel-0.1.0b"
|
|
||||||
# install antos
|
|
||||||
|
|
||||||
[ -d /tmp/apub ] && rm -r /tmp/apub
|
|
||||||
mkdir -p /tmp/apub
|
|
||||||
cd /tmp/apub
|
|
||||||
wget --no-check-certificate "https://github.com/lxsang/antd-tunnel-publishers/raw/master/dist/antd-publishers-0.1.0a.tar.gz"
|
|
||||||
tar xvzf antd-publishers-0.1.0a.tar.gz
|
|
||||||
cd antd-publishers-0.1.0a
|
|
||||||
./configure --prefix=/opt/www && make && make install
|
|
||||||
|
|
||||||
mkdir -p /opt/www/htdocs
|
mkdir -p /opt/www/htdocs
|
||||||
|
|
||||||
cd /opt/www
|
if [ "$1" = "full" ]; then
|
||||||
|
# base server
|
||||||
|
wget -O- https://get.bitdojo.dev/antd | bash -s "1.0.6b"
|
||||||
|
# base plugin
|
||||||
|
wget -O- https://get.bitdojo.dev/antd_plugin | bash -s "lua-0.5.2b"
|
||||||
|
wget -O- https://get.bitdojo.dev/antd_plugin | bash -s "wterm-1.0.0b"
|
||||||
|
wget -O- https://get.bitdojo.dev/antd_plugin | bash -s "tunnel-0.1.0b"
|
||||||
|
# install antos
|
||||||
|
|
||||||
# create the configuration file
|
[ -d /tmp/apub ] && rm -r /tmp/apub
|
||||||
cat << EOF > config.ini
|
mkdir -p /tmp/apub
|
||||||
|
cd /tmp/apub
|
||||||
|
wget --no-check-certificate "https://github.com/lxsang/antd-tunnel-publishers/raw/master/dist/antd-publishers-0.1.0a.tar.gz"
|
||||||
|
tar xvzf antd-publishers-0.1.0a.tar.gz
|
||||||
|
cd antd-publishers-0.1.0a
|
||||||
|
./configure --prefix=/opt/www && make && make install
|
||||||
|
|
||||||
|
cd /opt/www
|
||||||
|
|
||||||
|
# create the configuration file
|
||||||
|
cat << EOF > config.ini
|
||||||
[SERVER]
|
[SERVER]
|
||||||
plugins=/opt/www/lib/
|
plugins=/opt/www/lib/
|
||||||
plugins_ext=.so
|
plugins_ext=.so
|
||||||
@ -81,11 +83,12 @@ audio/mpeg=mp3,mpeg
|
|||||||
ls = lua
|
ls = lua
|
||||||
lua = lua
|
lua = lua
|
||||||
EOF
|
EOF
|
||||||
# generate cert
|
# generate cert
|
||||||
openssl genrsa -des3 -passout pass:1234 -out keypair.key 2048
|
openssl genrsa -des3 -passout pass:1234 -out keypair.key 2048
|
||||||
openssl rsa -passin pass:1234 -in keypair.key -out server.key
|
openssl rsa -passin pass:1234 -in keypair.key -out server.key
|
||||||
openssl req -new -subj '/C=FR' -key server.key -out server.csr
|
openssl req -new -subj '/C=FR' -key server.key -out server.csr
|
||||||
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
|
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
|
||||||
|
fi
|
||||||
|
|
||||||
cd /opt/www/htdocs
|
cd /opt/www/htdocs
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user