mirror of https://github.com/tteck/Proxmox.git
check for root password
This commit is contained in:
parent
0ad41bda7e
commit
ef01143dbe
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -95,8 +95,7 @@ rm install.sh
|
|||
msg_ok "Installed AdGuard Home"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -93,8 +93,7 @@ $STD apt install audiobookshelf
|
|||
msg_ok "Installed audiobookshelf"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -114,8 +114,7 @@ systemctl enable --now -q autobrr.service
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -347,8 +347,7 @@ $STD systemctl enable --now blocky
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -103,8 +103,7 @@ $STD bash <(curl -fsSL https://get.casaos.io)
|
|||
msg_ok "Installed CasaOS"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -107,8 +107,7 @@ $STD systemctl enable --now changedetection
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -113,8 +113,7 @@ $STD update-rc.d cronicled defaults
|
|||
msg_ok "Installed Cronicle Primary Server"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -92,8 +92,7 @@ $STD dpkg -i daemonsync_2.2.0.0059_amd64.deb
|
|||
msg_ok "Installed Daemon Sync Server"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -123,8 +123,7 @@ systemctl start dashy
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -116,8 +116,7 @@ $STD systemctl enable --now deconz
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -130,8 +130,7 @@ systemctl enable --now -q deluge-web.service
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -147,8 +147,7 @@ if [[ $DOCKER_COMPOSE == "Y" ]]; then
|
|||
fi
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -106,8 +106,7 @@ $STD dpkg -i emby-server-deb_${LATEST}_amd64.deb
|
|||
msg_ok "Installed Emby"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -91,8 +91,7 @@ $STD systemctl enable --now emqx
|
|||
msg_ok "Installed EMQX"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -112,8 +112,7 @@ systemctl start esphomeDashboard
|
|||
msg_ok "Installed ESPHome Dashboard"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -99,8 +99,7 @@ $STD apt-get install -y grafana
|
|||
msg_ok "Installed Grafana"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -129,8 +129,7 @@ systemctl reload apache2
|
|||
msg_ok "Installed grocy"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -123,8 +123,7 @@ $STD sudo systemctl enable --now heimdall.service
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -165,8 +165,7 @@ $STD systemctl enable --now homeassistant
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -150,8 +150,7 @@ $STD docker run -d \
|
|||
msg_ok "Installed Home Assistant $CORE_LATEST_VERSION"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -102,8 +102,7 @@ $STD hb-service install --user homebridge
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -122,8 +122,7 @@ $STD systemctl enable --now homepage
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -111,8 +111,7 @@ $STD systemctl enable --now homer
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -96,8 +96,7 @@ $STD systemctl enable --now hyperion@root.service
|
|||
msg_ok "Installed Hyperion"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -125,8 +125,7 @@ if [[ $TELEGRAF == "Y" ]]; then
|
|||
fi
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -90,8 +90,7 @@ $STD bash <(curl -fsSL https://iobroker.net/install.sh)
|
|||
msg_ok "Installed ioBroker"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -130,8 +130,7 @@ ln -s /usr/share/jellyfin/web/ /usr/lib/jellyfin/bin/jellyfin-web
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -106,8 +106,7 @@ $STD bash <(curl -sSLf https://raw.githubusercontent.com/helm/helm/main/scripts/
|
|||
msg_ok "Installed Helm"
|
||||
fi
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -112,8 +112,7 @@ systemctl enable --now -q kavita.service
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -109,8 +109,7 @@ $STD systemctl enable --now keycloak.service
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -116,8 +116,7 @@ systemctl enable --now -q lidarr
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -74,7 +74,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -218,8 +218,7 @@ $STD systemctl enable --now magicmirror
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -107,8 +107,7 @@ if [[ $ADMINER == "Y" ]]; then
|
|||
fi
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -101,8 +101,7 @@ $STD node node_modules/meshcentral --install
|
|||
msg_ok "Installed MeshCentral"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -120,8 +120,7 @@ systemctl start motioneye
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -97,8 +97,7 @@ $STD apt-get -y install mosquitto-clients
|
|||
msg_ok "Installed Mosquitto MQTT Broker"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -112,8 +112,7 @@ $STD systemctl enable --now n8n
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -140,8 +140,7 @@ $STD systemctl enable --now navidrome.service
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -92,8 +92,7 @@ service apache2 restart
|
|||
msg_ok "Installed NextCloudPi"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -244,8 +244,7 @@ EOF
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -119,8 +119,7 @@ systemctl enable --now nocodb.service &>/dev/null
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -122,8 +122,7 @@ $STD systemctl enable --now nodered.service
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -96,8 +96,7 @@ $STD dpkg -i Omada_SDN_Controller_v5.7.4_Linux_x64.deb
|
|||
msg_ok "Installed Omada Controller"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -108,8 +108,7 @@ omv-confdbadm populate
|
|||
msg_ok "Installed OpenMediaVault"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -107,8 +107,7 @@ $STD systemctl enable --now openhab.service
|
|||
msg_ok "Installed openHAB"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -74,7 +74,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -268,8 +268,7 @@ $STD systemctl enable --now paperless-consumer paperless-webserver paperless-sch
|
|||
msg_ok "Created Services"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -71,7 +71,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -180,8 +180,7 @@ WantedBy=multi-user.target" >$service_path
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -71,7 +71,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -113,8 +113,7 @@ $STD bash <(curl -fsSL https://install.pi-hole.net) /dev/stdin --unattended
|
|||
msg_ok "Installed Pi-hole"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -110,8 +110,7 @@ $STD apt-get -o Dpkg::Options::="--force-confold" install -y plexmediaserver
|
|||
msg_ok "Installed Plex Media Server"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -112,8 +112,7 @@ $STD systemctl enable --now homeassistant
|
|||
msg_ok "Installed Home Assistant"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -91,8 +91,7 @@ echo -e 'unqualified-search-registries=["docker.io"]' >> /etc/containers/registr
|
|||
msg_ok "Installed Podman"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -214,8 +214,7 @@ if [[ $ADMINER == "Y" ]]; then
|
|||
fi
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -121,8 +121,7 @@ $STD sudo systemctl enable --now prometheus
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -114,8 +114,7 @@ systemctl enable --now -q prowlarr
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -114,8 +114,7 @@ systemctl enable --now -q radarr
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -114,8 +114,7 @@ systemctl enable --now -q readarr
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -119,8 +119,7 @@ systemctl enable --now -q sabnzbd.service
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -179,8 +179,7 @@ WantedBy=multi-user.target" >$service_path
|
|||
$STD systemctl enable --now scrypted.service
|
||||
msg_ok "Created Service"
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -148,8 +148,7 @@ $STD pm2 list
|
|||
msg_ok "Installed Shinobi"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -95,8 +95,7 @@ $STD apt-get -o Dpkg::Options::="--force-confold" install -y sonarr
|
|||
msg_ok "Installed Sonarr"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -98,8 +98,7 @@ systemctl restart syncthing@root.service
|
|||
msg_ok "Installed Syncthing"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -141,8 +141,7 @@ systemctl enable --now -q tdarr-node.service
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -93,8 +93,7 @@ $STD bash <(curl -fsSL https://download.technitium.com/dns/install.sh)
|
|||
msg_ok "Installed Technitium DNS"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -93,8 +93,7 @@ systemctl start transmission-daemon
|
|||
msg_ok "Installed Transmission"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -115,8 +115,7 @@ systemctl enable --now -q trilium
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -86,8 +86,7 @@ $STD apt-get install -y mc
|
|||
msg_ok "Installed Dependencies"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -104,8 +104,7 @@ $STD systemctl enable --now umbrel-startup.service
|
|||
msg_ok "Installed Umbrel"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -71,7 +71,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -99,8 +99,7 @@ $STD bash unifi-latest.sh --skip --add-repository $LOCAL
|
|||
msg_ok "Installed UniFi Network Application"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -119,8 +119,7 @@ $STD systemctl enable --now uptime-kuma.service
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -176,8 +176,7 @@ $STD systemctl enable --now vaultwarden.service
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -114,8 +114,7 @@ systemctl enable --now -q whisparr
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -108,8 +108,7 @@ $STD systemctl enable --now whoogle.service
|
|||
msg_ok "Installed Whoogle"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -136,8 +136,7 @@ $STD systemctl enable --now wikijs
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -108,8 +108,7 @@ $STD bash <(curl -fsSL https://install.pivpn.io) --unattended options.conf
|
|||
msg_ok "Installed WireGuard"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -69,7 +69,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -95,8 +95,7 @@ $STD bash <(curl -fsSL https://install.yunohost.org) -a
|
|||
msg_ok "Installed YunoHost"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
chmod -x /etc/update-motd.d/*
|
||||
touch ~/.hushlogin
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -135,8 +135,7 @@ $STD systemctl enable zigbee2mqtt.service
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
|
@ -70,7 +70,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
|||
fi
|
||||
fi
|
||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
set -e
|
||||
|
||||
|
@ -111,8 +111,7 @@ $STD systemctl enable zwave-js-ui
|
|||
msg_ok "Created Service"
|
||||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
passwd -S root | grep -q "P"
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
rm /etc/motd
|
||||
rm /etc/update-motd.d/10-uname
|
||||
|
|
Loading…
Reference in New Issue