Files
scrypted/server/bin/postinstall
2024-08-21 13:41:05 -07:00

9 lines
315 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();
}
require('./electron-get').installElectron();