Skip to content

Commit b53c64a

Browse files
slackjeffJefferson
authored and
Jefferson
committed
fix: Installation don't stop, error but the service is failing.
Service normally starts, but after a few seconds it fails. The installer did not cause an error
1 parent 1d478a0 commit b53c64a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ standalone_install() {
135135

136136
$SUDO cp $TMP_DIR/shellhub-agent.service /etc/systemd/system/shellhub-agent.service
137137
$SUDO systemctl enable --now shellhub-agent || { rm -rf $TMP_DIR && echo "❌ Failed to enable systemd service."; exit 1; }
138+
# Wait, as the service normally activates and after a few seconds it fails.
139+
sleep 5s
140+
$SUDO systemctl is-active --quiet shellhub-agent || { rm -rf $TMP_DIR && echo "❌ Failed to enable systemd service."; exit 1; }
138141

139142
$SUDO rm -rf $INSTALL_DIR
140143
$SUDO mv $TMP_DIR $INSTALL_DIR

0 commit comments

Comments
 (0)