Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

fix(cli): 'Updater not found' on serverkit update — check -f not -x

Juan Denis1b6cc38673e4
diff --git a/serverkit b/serverkit
index 5febefe4..fe786a1c 100644
--- a/serverkit
+++ b/serverkit
@@ -535,7 +535,10 @@ cmd_update() {
print_header
echo ""
- if [ ! -x "$INSTALL_DIR/scripts/update.sh" ]; then
+ # -f, not -x: scripts are tracked 0644 in git and invoked via `bash`, so
+ # requiring the executable bit wrongly fails every update with
+ # "Updater not found" on a perfectly good install.
+ if [ ! -f "$INSTALL_DIR/scripts/update.sh" ]; then
print_error "Updater not found at $INSTALL_DIR/scripts/update.sh"
exit 1
fi