mirror of
https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git
synced 2025-04-22 08:20:54 +08:00
⚙️Add bash to quickly deploy the project
This commit is contained in:
parent
acd50984fb
commit
629fd917b9
10
install.sh
10
install.sh
@ -39,6 +39,7 @@ case $input in
|
||||
case $input in
|
||||
[yY])
|
||||
systemctl enable web_api.service
|
||||
echo "API service will start when system boot!"
|
||||
;;
|
||||
[nN]| *)
|
||||
echo "You can start the service by running: systemctl start web_api.service"
|
||||
@ -54,6 +55,7 @@ case $input in
|
||||
case $input in
|
||||
[yY])
|
||||
systemctl enable web_app.service
|
||||
echo "Web service will start when system boot!"
|
||||
;;
|
||||
[nN]| *)
|
||||
echo "You can start the service by running: systemctl start web_app.service"
|
||||
@ -72,16 +74,16 @@ case $input in
|
||||
systemctl enable web_api.service
|
||||
;;
|
||||
[nN]| *)
|
||||
echo "You can start them on boot by these commands:
|
||||
systemctl enable web_app.service/web_api.service"
|
||||
echo "You can start them on boot by these commands:"
|
||||
echo "systemctl enable (web_app.service||web_api.service)"
|
||||
;;
|
||||
esac
|
||||
echo "Starting WEB and API Services..."
|
||||
systemctl start web_app.service
|
||||
systemctl start web_api.service
|
||||
echo "API and APP service are running!"
|
||||
echo "You can stop the api service by running following command:
|
||||
systemctl stop web_app.service/web_api.service"
|
||||
echo "You can stop the api service by running following command: "
|
||||
echo "systemctl stop (web_app.service||web_api.service)"
|
||||
;;
|
||||
*)
|
||||
echo "Exiting without running anything..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user