|
|
@ -71,6 +71,12 @@ RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
|
|
|
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
|
|
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CODENAME=$(cat /etc/*release | grep "UBUNTU_CODENAME" | awk '{print substr($1, 17, length($1)) }')
|
|
|
|
|
|
|
|
cat <<EOF >/etc/apt/sources.list
|
|
|
|
|
|
|
|
deb http://mirror.genesisadaptive.com/ubuntu/ $CODENAME main
|
|
|
|
|
|
|
|
deb-src http://mirror.genesisadaptive.com/ubuntu/ $CODENAME main
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Updating Container OS"
|
|
|
|
msg_info "Updating Container OS"
|
|
|
|
$STD apt-get update
|
|
|
|
$STD apt-get update
|
|
|
|
$STD apt-get -y upgrade
|
|
|
|
$STD apt-get -y upgrade
|
|
|
@ -79,7 +85,6 @@ msg_ok "Updated Container OS"
|
|
|
|
msg_info "Installing Dependencies"
|
|
|
|
msg_info "Installing Dependencies"
|
|
|
|
$STD apt-get install -y curl
|
|
|
|
$STD apt-get install -y curl
|
|
|
|
$STD apt-get install -y sudo
|
|
|
|
$STD apt-get install -y sudo
|
|
|
|
$STD apt-get install -y mc
|
|
|
|
|
|
|
|
msg_ok "Installed Dependencies"
|
|
|
|
msg_ok "Installed Dependencies"
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -z "$(grep -w "100000" /proc/self/uid_map)" ]]; then
|
|
|
|
if [[ -z "$(grep -w "100000" /proc/self/uid_map)" ]]; then
|
|
|
@ -103,10 +108,10 @@ $STD dpkg -i emby-server-deb_${LATEST}_amd64.deb
|
|
|
|
msg_ok "Installed Emby"
|
|
|
|
msg_ok "Installed Emby"
|
|
|
|
|
|
|
|
|
|
|
|
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
|
|
|
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
|
|
|
|
|
|
|
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" > /etc/motd
|
|
|
|
|
|
|
|
chmod -x /etc/update-motd.d/*
|
|
|
|
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
|
|
|
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
|
|
|
msg_info "Customizing Container"
|
|
|
|
msg_info "Customizing Container"
|
|
|
|
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
|
|
|
|
|
|
|
touch ~/.hushlogin
|
|
|
|
|
|
|
|
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
|
|
|
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
|
|
|
mkdir -p $(dirname $GETTY_OVERRIDE)
|
|
|
|
mkdir -p $(dirname $GETTY_OVERRIDE)
|
|
|
|
cat <<EOF >$GETTY_OVERRIDE
|
|
|
|
cat <<EOF >$GETTY_OVERRIDE
|
|
|
|