mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-23 09:20:20 +08:00
Update install.sh
This commit is contained in:
parent
0441733233
commit
9d04bc1ea2
@ -460,27 +460,27 @@ install_systemd() {
|
|||||||
|
|
||||||
|
|
||||||
#--------------- main-----------------------------------------
|
#--------------- main-----------------------------------------
|
||||||
check_ports $http_port $https_port $port
|
check_ports $http_port $https_port $port | tee -a $path/install.log
|
||||||
install_tools
|
install_tools | tee -a $path/install.log
|
||||||
download_source
|
download_source | tee -a $path/install.log
|
||||||
|
|
||||||
bash $install_path/install/install_docker.sh
|
bash $install_path/install/install_docker.sh | tee -a $path/install.log
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "install_docker failed with error $?. Exiting."
|
echo "install_docker failed with error $?. Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install_backends
|
install_backends | tee -a $path/install.log
|
||||||
|
|
||||||
install_systemd
|
install_systemd | tee -a $path/install.log
|
||||||
|
|
||||||
bash $install_path/install/install_cockpit.sh
|
bash $install_path/install/install_cockpit.sh | tee -a $path/install.log
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "install_cockpit failed with error $?. Exiting."
|
echo "install_cockpit failed with error $?. Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bash $install_path/install/install_plugins.sh
|
bash $install_path/install/install_plugins.sh | tee -a $path/install.log
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "install_plugins failed with error $?. Exiting."
|
echo "install_plugins failed with error $?. Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
@ -495,4 +495,4 @@ endtime=$(date +%s)
|
|||||||
runtime=$((endtime-starttime))
|
runtime=$((endtime-starttime))
|
||||||
echo "Script execution time: $runtime seconds"
|
echo "Script execution time: $runtime seconds"
|
||||||
echo -e "\n-- Install success! ------"
|
echo -e "\n-- Install success! ------"
|
||||||
echo "Access Websoft9 console by: http://Internet IP:$(grep ListenStream /lib/systemd/system/cockpit.socket | cut -d= -f2) and using Linux user for login"
|
echo "Access Websoft9 console by: http://Internet IP:$(grep ListenStream /lib/systemd/system/cockpit.socket | cut -d= -f2) and using Linux user for login"
|
||||||
|
Loading…
Reference in New Issue
Block a user