Update install.sh

This commit is contained in:
qiaofeng1227 2024-01-30 14:10:58 +08:00 committed by GitHub
parent 0441733233
commit 9d04bc1ea2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -460,27 +460,27 @@ install_systemd() {
#--------------- main-----------------------------------------
check_ports $http_port $https_port $port
install_tools
download_source
check_ports $http_port $https_port $port | tee -a $path/install.log
install_tools | tee -a $path/install.log
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
echo "install_docker failed with error $?. Exiting."
exit 1
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
echo "install_cockpit failed with error $?. Exiting."
exit 1
fi
bash $install_path/install/install_plugins.sh
bash $install_path/install/install_plugins.sh | tee -a $path/install.log
if [ $? -ne 0 ]; then
echo "install_plugins failed with error $?. Exiting."
exit 1
@ -495,4 +495,4 @@ endtime=$(date +%s)
runtime=$((endtime-starttime))
echo "Script execution time: $runtime seconds"
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"