Archived
Use a script to start urbit ship to handle restarts
This commit is contained in:
Regular → Executable
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
pier_dir="/urbit/zod"
|
||||
|
||||
# Check if the directory exists
|
||||
if [ -d "$pier_dir" ]; then
|
||||
echo "Pier directory already exists, rebooting..."
|
||||
urbit -t zod
|
||||
else
|
||||
echo "Creating a new fake ship..."
|
||||
urbit -t -F zod
|
||||
fi
|
||||
Reference in New Issue
Block a user