Update ubuntu-v5-install.sh

fix
pull/930/head
tteckster 2 years ago committed by GitHub
parent 3a6d7cb0cb
commit 120da5bea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,32 +86,10 @@ $STD apt-get install -y curl
$STD apt-get install -y sudo $STD apt-get install -y sudo
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
DOCKER_CONFIG_PATH='/etc/docker/daemon.json'
mkdir -p $(dirname $DOCKER_CONFIG_PATH)
cat >$DOCKER_CONFIG_PATH <<'EOF'
{
"log-driver": "journald"
}
EOF
msg_info "Installing Umbrel (Patience)"
if [ "$ST" == "yes" ]; then
VER=$(curl -s https://api.github.com/repos/containers/fuse-overlayfs/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
cd /usr/local/bin
curl -sSL -o fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/$VER/fuse-overlayfs-x86_64
chmod 755 /usr/local/bin/fuse-overlayfs
cd ~
fi
$STD bash <(curl -fsSL https://umbrel.sh)
systemctl daemon-reload
$STD systemctl enable --now umbrel-startup.service
msg_ok "Installed Umbrel"
PASS=$(grep -w "root" /etc/shadow | cut -b6) PASS=$(grep -w "root" /etc/shadow | cut -b6)
if [[ $PASS != $ ]]; then if [[ $PASS != $ ]]; then
msg_info "Customizing Container" msg_info "Customizing Container"
rm /etc/motd chmod -x /etc/update-motd.d/*
rm /etc/update-motd.d/10-uname
touch ~/.hushlogin 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)
@ -128,6 +106,7 @@ if [[ "${SSH_ROOT}" == "yes" ]]; then
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd systemctl restart sshd
fi fi
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get autoremove $STD apt-get autoremove
$STD apt-get autoclean $STD apt-get autoclean

Loading…
Cancel
Save

Powered by BW's shoe-string budget.