Added a $PORT redirect to port 8080.

This commit is contained in:
sleirsgoevy 2017-12-10 21:17:49 +03:00
parent 21991de60c
commit 5672dbdc23
2 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,6 @@ find "$APP" ! -path "$APP" -maxdepth 1 -exec mv "{}" "$CACHE/app_root" \;
mv "$CACHE/app_root" "$APP/root"
tar -xvzf "$BP/uml.tar.gz" -C "$APP"
mkdir "$APP/tmp"
mkdir "$APP/shadow_root"
mkdir "$APP/shadow_mount"
dd if=/dev/zero of="$APP/shadow_root.img" bs=1048576 count="$FS_SIZE"
@ -24,6 +23,11 @@ uml_run "rm /var/lib/dpkg/lock /var/lib/dpkg/triggers/Lock; rm -r /var/cache/apt
mkdir "$APP/.profile.d"
cp "$BP/bin/read_config" "$APP/.profile.d"
cp "$BP/bin/redirect_PORT" "$APP/.profile.d"
cp "$APP/root/Procfile" "$APP/Procfile"
fix_procfile "$APP/Procfile"
if test -f "$APP/root/.slirprc"
then cp "$APP/root/.slirprc" "$APP"
fi

1
bin/redirect_PORT Normal file
View File

@ -0,0 +1 @@
echo "redir $PORT 8080" >> /app/.slirprc