Upload project
This commit is contained in:
1
root/etc/s6-overlay/s6-rc.d/initialize/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/initialize/type
Normal file
@@ -0,0 +1 @@
|
||||
oneshot
|
1
root/etc/s6-overlay/s6-rc.d/initialize/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/initialize/up
Normal file
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/scripts/container-prep
|
0
root/etc/s6-overlay/s6-rc.d/user/contents.d/wings
Normal file
0
root/etc/s6-overlay/s6-rc.d/user/contents.d/wings
Normal file
1
root/etc/s6-overlay/s6-rc.d/wings/dependencies
Normal file
1
root/etc/s6-overlay/s6-rc.d/wings/dependencies
Normal file
@@ -0,0 +1 @@
|
||||
initialize
|
3
root/etc/s6-overlay/s6-rc.d/wings/run
Normal file
3
root/etc/s6-overlay/s6-rc.d/wings/run
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/command/with-contenv bash
|
||||
|
||||
wings --config $DATADIR/config.yml
|
1
root/etc/s6-overlay/s6-rc.d/wings/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/wings/type
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
20
root/etc/s6-overlay/scripts/container-prep
Normal file
20
root/etc/s6-overlay/scripts/container-prep
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/command/with-contenv bash
|
||||
source ContainerTools
|
||||
SNAME=${BASH_SOURCE##*/}
|
||||
DATADIR=${DATADIR:=/var/lib/pterodactyl}
|
||||
|
||||
# Create specified data directory if it doesn't exist. Defaults to Wings default.
|
||||
log "Preparing workdir: ${DATADIR}"
|
||||
if [ ! -d $DATADIR ]; then
|
||||
mkdir -p $DATADIR
|
||||
fi
|
||||
|
||||
# Halt container boot unless the config file is present. Wings will not start without it.
|
||||
log "Checking for $DATADIR/config.yml before beginning execution"
|
||||
COUNT=1
|
||||
while [ ! -e $DATADIR/config.yml ]; do
|
||||
log "Attempt $COUNT, config file \"config.yml\" not present in \"$DATADIR\" - retrying in 15 seconds"
|
||||
((COUNT=COUNT+1))
|
||||
sleep 15
|
||||
done
|
||||
log "Config file found, starting Wings"
|
Reference in New Issue
Block a user