Files
scrypted/server/bin/postinstall
2024-08-24 18:12:00 -07:00

7 lines
269 B
JavaScript

#!/usr/bin/env node
// install portable python if the SCRYPTED_PYTHON_PATH variable is unset.
// this variable will be set for docker and lxc environments.
if (!process.env.SCRYPTED_PYTHON_PATH) {
require('./packaged-python').installScryptedServerRequirements();
}