mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-28 12:03:33 +00:00
fix install.sh to start uncloud.service after installing all systemd units
This commit is contained in:
+8
-5
@@ -160,14 +160,10 @@ EOF
|
|||||||
# Reload systemd to recognize the new or updated unit file.
|
# Reload systemd to recognize the new or updated unit file.
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable uncloud.service
|
systemctl enable uncloud.service
|
||||||
|
|
||||||
log "⏳ Starting Uncloud machine daemon (uncloud.service)..."
|
|
||||||
systemctl restart uncloud.service
|
|
||||||
log "✓ Uncloud machine daemon started."
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_corrosion() {
|
install_corrosion() {
|
||||||
# TODO: build corrosion binaries and release them on GitHub.
|
# TODO: build corrosion binaries and release them on GitHub fork of corrosion repo.
|
||||||
# For now, assume /usr/local/bin/uncloud-corrosion exists.
|
# For now, assume /usr/local/bin/uncloud-corrosion exists.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -203,6 +199,12 @@ EOF
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start_uncloud() {
|
||||||
|
log "⏳ Starting Uncloud machine daemon (uncloud.service)..."
|
||||||
|
systemctl restart uncloud.service
|
||||||
|
log "✓ Uncloud machine daemon started."
|
||||||
|
}
|
||||||
|
|
||||||
log "⏳ Running Uncloud install script..."
|
log "⏳ Running Uncloud install script..."
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ]; then
|
if [ "$EUID" -ne 0 ]; then
|
||||||
@@ -216,5 +218,6 @@ install_uncloud_binaries
|
|||||||
install_uncloud_systemd
|
install_uncloud_systemd
|
||||||
install_corrosion
|
install_corrosion
|
||||||
install_corrosion_systemd
|
install_corrosion_systemd
|
||||||
|
start_uncloud
|
||||||
|
|
||||||
log "✓ Uncloud installed on the machine successfully! 🎉"
|
log "✓ Uncloud installed on the machine successfully! 🎉"
|
||||||
|
|||||||
Reference in New Issue
Block a user