@@ -5,6 +5,10 @@ build: build/bootstrap_captive.sha256
rebuild: clean build
+update: rebuild
+ rsync build/bootstrap_captive ${DEPLOY_REMOTE}:/usr/local/bin/
+ ssh ${DEPLOY_REMOTE} "bootstrap_captive unpack && systemctl restart bootstrap_captive_server"
+
build/src: src
mkdir -p build
rsync -ai --delete --exclude __pycache__ src/ build/src/
@@ -19,7 +19,7 @@ def get_form(inp):
continue
with open(jsfile) as fd:
js = json.load(fd)
- js["name"] = f
+ js["name"] = f[:-5]
try:
js = mod.get_form(js)
except Exception as ex: