mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
Update install.sh
This commit is contained in:
parent
c8732ddb08
commit
b821430414
1 changed files with 18 additions and 1 deletions
19
install.sh
19
install.sh
|
@ -147,6 +147,23 @@ KillMode=mixed
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
chmod 644 ServicePath
|
chmod 644 ServicePath
|
||||||
|
systemctl daemon-reload
|
||||||
|
}
|
||||||
|
|
||||||
|
install_config() {
|
||||||
|
mkdir "$DataPath"
|
||||||
|
echo "Please input nginx-ui service listen port:"
|
||||||
|
read Port
|
||||||
|
echo "Please input nginx-ui http challenge port port:"
|
||||||
|
read HTTPChallengePort
|
||||||
|
cat > "$DataPath/app.ini" << EOF
|
||||||
|
[server]
|
||||||
|
HttpPort = ${Port}
|
||||||
|
RunMode = release
|
||||||
|
JwtSecret = $(uuidgen)
|
||||||
|
Email =
|
||||||
|
HTTPChallengePort = ${HTTPChallengePort}
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
start_nginx_ui() {
|
start_nginx_ui() {
|
||||||
|
@ -190,7 +207,7 @@ main() {
|
||||||
install_bin
|
install_bin
|
||||||
install_service
|
install_service
|
||||||
|
|
||||||
mkdir DataPath
|
install_config
|
||||||
|
|
||||||
start_nginx_ui
|
start_nginx_ui
|
||||||
stop_nginx_ui
|
stop_nginx_ui
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue