mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
Merge branch 'next/minor' of github.com:Start9Labs/start-os into next/major
This commit is contained in:
28
debian/postinst
vendored
28
debian/postinst
vendored
@@ -26,8 +26,12 @@ if [ -f /etc/default/grub ]; then
|
||||
fi
|
||||
|
||||
# set local and remote login prompt
|
||||
echo "StartOS v$(cat /usr/lib/startos/VERSION.txt) [\m] on \n.local (\l)" > /etc/issue
|
||||
echo "StartOS v$(cat /usr/lib/startos/VERSION.txt)" > /etc/issue.net
|
||||
cat << EOF > /etc/issue
|
||||
StartOS v$(cat /usr/lib/startos/VERSION.txt) [\\m] on \\n.local (\\l)
|
||||
EOF
|
||||
cat << EOF > /etc/issue.net
|
||||
StartOS v$(cat /usr/lib/startos/VERSION.txt)
|
||||
EOF
|
||||
|
||||
# change timezone
|
||||
rm -f /etc/localtime
|
||||
@@ -86,6 +90,8 @@ sed -i '/^\s*#\?\s*issue_discards\s*=\s*/c\issue_discards = 1' /etc/lvm/lvm.conf
|
||||
sed -i '/\(^\|#\)\s*unqualified-search-registries\s*=\s*/c\unqualified-search-registries = ["docker.io"]' /etc/containers/registries.conf
|
||||
sed -i 's/\(#\|\^\)\s*\([^=]\+\)=\(suspend\|hibernate\)\s*$/\2=ignore/g' /etc/systemd/logind.conf
|
||||
sed -i '/\(^\|#\)MulticastDNS=/c\MulticastDNS=no' /etc/systemd/resolved.conf
|
||||
sed -i 's/\[Service\]/[Service]\nEnvironment=SYSTEMD_LOG_LEVEL=debug/' /lib/systemd/system/systemd-timesyncd.service
|
||||
sed -i '/\(^\|#\)RootDistanceMaxSec=/c\RootDistanceMaxSec=10' /etc/systemd/timesyncd.conf
|
||||
|
||||
mkdir -p /etc/nginx/ssl
|
||||
|
||||
@@ -100,10 +106,12 @@ CookieAuthentication 1
|
||||
EOF
|
||||
|
||||
rm -rf /var/lib/tor/*
|
||||
ln -sf /usr/lib/startos/scripts/tor-check.sh /usr/bin/tor-check
|
||||
ln -sf /usr/lib/startos/scripts/gather_debug_info.sh /usr/bin/gather-debug
|
||||
ln -sf /usr/lib/startos/scripts/chroot-and-upgrade /usr/bin/chroot-and-upgrade
|
||||
ln -sf /usr/lib/startos/scripts/tor-check /usr/bin/tor-check
|
||||
ln -sf /usr/lib/startos/scripts/gather-debug-info /usr/bin/gather-debug-info
|
||||
ln -sf /usr/lib/startos/scripts/wg-vps-setup /usr/bin/wg-vps-setup
|
||||
|
||||
echo "fs.inotify.max_user_watches=1048576" > /etc/sysctl.d/97-embassy.conf
|
||||
echo "fs.inotify.max_user_watches=1048576" > /etc/sysctl.d/97-startos.conf
|
||||
|
||||
# Old pi was set with this locale, because of pg we are now stuck with including that locale
|
||||
locale-gen en_GB en_GB.UTF-8
|
||||
@@ -112,16 +120,14 @@ update-locale LANGUAGE
|
||||
rm -f "/etc/locale.gen"
|
||||
dpkg-reconfigure --frontend noninteractive locales
|
||||
|
||||
if ! getent group | grep '^embassy:'; then
|
||||
groupadd embassy
|
||||
if ! getent group | grep '^startos:'; then
|
||||
groupadd startos
|
||||
fi
|
||||
|
||||
ln -sf /usr/lib/startos/scripts/dhclient-exit-hook /etc/dhcp/dhclient-exit-hooks.d/embassy
|
||||
|
||||
rm -f /etc/motd
|
||||
ln -sf /usr/lib/startos/motd /etc/update-motd.d/00-embassy
|
||||
ln -sf /usr/lib/startos/motd /etc/update-motd.d/00-startos
|
||||
chmod -x /etc/update-motd.d/*
|
||||
chmod +x /etc/update-motd.d/00-embassy
|
||||
chmod +x /etc/update-motd.d/00-startos
|
||||
|
||||
# LXC
|
||||
cat /etc/subuid | grep -v '^root:' > /etc/subuid.tmp || true
|
||||
|
||||
Reference in New Issue
Block a user