if[ -f "/root/docker/setup/00-init.sh"];thenecho"Running the init script";/root/docker/setup/00-init.sh||{echo"Failed to execute /root/docker/setup/00-init.sh" >&2&&exit 10;};echo"Done running the init script";fi;\
echo""
RUNecho"Creating and editing system files ";\
$SHELL_OPTS;\
[ -f "/root/.profile"]|| touch "/root/.profile";\
if[ -f "/root/docker/setup/01-system.sh"];thenecho"Running the system script";/root/docker/setup/01-system.sh||{echo"Failed to execute /root/docker/setup/01-system.sh" >&2&&exit 10;};echo"Done running the system script";fi;\
RUNecho"Initializing packages before copying files to image";\
$SHELL_OPTS;\
if[ -f "/root/docker/setup/02-packages.sh"];thenecho"Running the packages script";/root/docker/setup/02-packages.sh||{echo"Failed to execute /root/docker/setup/02-packages.sh" >&2&&exit 10;};echo"Done running the packages script";fi;\
if[ -f "/root/docker/setup/03-files.sh"];thenecho"Running the files script";/root/docker/setup/03-files.sh||{echo"Failed to execute /root/docker/setup/03-files.sh" >&2&&exit 10;};echo"Done running the files script";fi;\
echo""
RUNecho"Custom Settings";\
$SHELL_OPTS;\
echo""
RUNecho"Setting up users and scripts ";\
$SHELL_OPTS;\
if[ -f "/root/docker/setup/04-users.sh"];thenecho"Running the users script";/root/docker/setup/04-users.sh||{echo"Failed to execute /root/docker/setup/04-users.sh" >&2&&exit 10;};echo"Done running the users script";fi;\
echo""
RUNecho"Running the user init commands";\
$SHELL_OPTS;\
echo""
RUNecho"Setting OS Settings ";\
$SHELL_OPTS;\
echo""
RUNecho"Custom Applications";\
$SHELL_OPTS;\
echo""
RUNecho"Running custom commands";\
if[ -f "/root/docker/setup/05-custom.sh"];thenecho"Running the custom script";/root/docker/setup/05-custom.sh||{echo"Failed to execute /root/docker/setup/05-custom.sh"&&exit 10;};echo"Done running the custom script";fi;\
echo""
RUNecho"Running final commands before cleanup";\
$SHELL_OPTS;\
if[ -f "/root/docker/setup/06-post.sh"];thenecho"Running the post script";/root/docker/setup/06-post.sh||{echo"Failed to execute /root/docker/setup/06-post.sh" >&2&&exit 10;};echo"Done running the post script";fi;\
if[ -d "/lib/systemd/system/sysinit.target.wants"];thencd"/lib/systemd/system/sysinit.target.wants"&&for want_file in *;do["$want_file"="systemd-tmpfiles-setup"]|| rm -f "$want_file";done;fi;\
if[ -f "/root/docker/setup/07-cleanup.sh"];thenecho"Running the cleanup script";/root/docker/setup/07-cleanup.sh||{echo"Failed to execute /root/docker/setup/07-cleanup.sh" >&2&&exit 10;};echo"Done running the cleanup script";fi;\