mirror of
https://github.com/dworkin/dgd
synced 2026-08-12 20:26:03 -04:00
17 lines
306 B
Bash
Executable file
17 lines
306 B
Bash
Executable file
#!/bin/sh
|
|
|
|
/container/update
|
|
|
|
snapshot=/container/state/snapshot
|
|
snapshot2=/container/state/snapshot.old
|
|
if [ \! -f $snapshot ]
|
|
then
|
|
snapshot=
|
|
fi
|
|
if [ \! -f $snapshot2 ]
|
|
then
|
|
snapshot2=
|
|
fi
|
|
|
|
ulimit -c 0
|
|
exec su dgd -c "/container/dgd/bin/dgd $* $snapshot $snapshot2" # 2> /container/src/log/runtime
|