PlotDirector/Tools/Deployment/deploy-plotdirector

13 lines
421 B
Bash

#!/bin/sh
# Install root:root 0755. Fixed import path under a root-owned, non-writable tree.
exec /usr/bin/env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin LANG=C.UTF-8 /usr/bin/python3 -I -c '
import sys
sys.path.insert(0, "/usr/local/lib/plotdirector-deployment")
from activate import main, public_error
try:
main()
except Exception as error:
print("DEPLOYMENT REFUSED: " + public_error(error))
sys.exit(1)
' "$@"