mirror of
https://github.com/engineer-man/piston.git
synced 2025-07-02 03:58:45 +02:00
11 lines
280 B
Bash
Executable file
11 lines
280 B
Bash
Executable file
#!/usr/bin/env bash
|
|
echo "Starting Piston API"
|
|
|
|
echo "Checking presense of nix store"
|
|
if [[ ! -f "/nix/piston_detected" ]]; then
|
|
echo "Nix Store is not loaded, assuming /nix has been mounted - copying contents"
|
|
cp -r /var/nix /nix
|
|
fi
|
|
|
|
echo "Launching Piston API"
|
|
node src
|