mirror of
https://github.com/casjaysdevdocker/coolify
synced 2025-09-18 15:57:43 -04:00
🦈🏠🐜❗ Initial Commit ❗🐜🦈🏠
This commit is contained in:
53
rootfs/root/docker/setup/02-packages.sh
Executable file
53
rootfs/root/docker/setup/02-packages.sh
Executable file
@@ -0,0 +1,53 @@
|
||||
#!/usr/bin/env bash
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
##@Version : 202409171124-git
|
||||
# @@Author : CasjaysDev
|
||||
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
|
||||
# @@License : MIT
|
||||
# @@ReadME :
|
||||
# @@Copyright : Copyright 2023 CasjaysDev
|
||||
# @@Created : Mon Aug 28 06:48:42 PM EDT 2023
|
||||
# @@File : 02-packages.sh
|
||||
# @@Description : script to run packages
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# shellcheck shell=bash
|
||||
# shellcheck disable=SC2016
|
||||
# shellcheck disable=SC2031
|
||||
# shellcheck disable=SC2120
|
||||
# shellcheck disable=SC2155
|
||||
# shellcheck disable=SC2199
|
||||
# shellcheck disable=SC2317
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Set bash options
|
||||
set -o pipefail
|
||||
[ "$DEBUGGER" = "on" ] && echo "Enabling debugging" && set -x$DEBUGGER_OPTIONS
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Set env variables
|
||||
exitCode=0
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Predifined actions
|
||||
sed -i 's/^\(tty\d\:\:\)/#\1/g' /etc/inittab &&
|
||||
sed -i \
|
||||
-e 's/#rc_sys=".*"/rc_sys="docker"/g' \
|
||||
-e 's/#rc_env_allow=".*"/rc_env_allow="\*"/g' \
|
||||
-e 's/#rc_crashed_stop=.*/rc_crashed_stop=NO/g' \
|
||||
-e 's/#rc_crashed_start=.*/rc_crashed_start=YES/g' \
|
||||
-e 's/#rc_provide=".*"/rc_provide="loopback net"/g' \
|
||||
/etc/rc.conf &&
|
||||
rm -f /etc/init.d/hwdrivers \
|
||||
/etc/init.d/hwclock \
|
||||
/etc/init.d/hwdrivers \
|
||||
/etc/init.d/modules \
|
||||
/etc/init.d/modules-load \
|
||||
/etc/init.d/modloop &&
|
||||
sed -i 's/cgroup_add_service /# cgroup_add_service /g' /lib/rc/sh/openrc-run.sh &&
|
||||
sed -i 's/VSERVER/DOCKER/Ig' /lib/rc/sh/init.sh
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Main script
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Set the exit code
|
||||
exitCode=$?
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
exit $exitCode
|
Reference in New Issue
Block a user