13 lines
473 B
Bash
Executable File
13 lines
473 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
ROOT="${1:-/srv/docker/assetmanager}"
|
|
cd "$ROOT"
|
|
echo "VERSION: $(cat VERSION)"
|
|
grep -n 'APP_VERSION = "0.5.5.5"' app/version.py
|
|
grep -n 'powershell -ExecutionPolicy Bypass -File' app/software_control.py
|
|
if sed -n '/def _launch_uploaded_script/,/return _run_meshctrl/p' app/software_control.py | grep -q "action=.*--powershell"; then
|
|
echo "FEHLER: _launch_uploaded_script enthält --powershell" >&2
|
|
exit 1
|
|
fi
|
|
echo "Dateien auf dem Host sind korrekt."
|