We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d478a0 commit b53c64aCopy full SHA for b53c64a
install.sh
@@ -135,6 +135,9 @@ standalone_install() {
135
136
$SUDO cp $TMP_DIR/shellhub-agent.service /etc/systemd/system/shellhub-agent.service
137
$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; }
141
142
$SUDO rm -rf $INSTALL_DIR
143
$SUDO mv $TMP_DIR $INSTALL_DIR
0 commit comments