From 223c1913a5afd1d8c8c1afb307168a11e2c1991b Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 8 Jul 2019 21:52:43 +0200 Subject: [PATCH] Drop postinst-setup --- postinst-setup | 62 -------------------------------------------------- 1 file changed, 62 deletions(-) delete mode 100755 postinst-setup diff --git a/postinst-setup b/postinst-setup deleted file mode 100755 index 44ab350..0000000 --- a/postinst-setup +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh -e - -# need bzr and postfix for the setup below -DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends postfix openssh-server bzr python-paramiko apt-cacher-ng eatmydata - -# root's ssh stuff -if [ ! -d /root/.ssh ] && [ -d /home/martin/.ssh ]; then - mkdir -p /root/.ssh - chmod 700 /root/.ssh - cp /home/martin/.ssh/id_rsa* /home/martin/.ssh/known_hosts /home/martin/.ssh/config /root/.ssh/ -fi - -# restore /etc bzr branch, rescue the files we do not want to restore -# completely -cd /etc -if [ ! -d /etc/.bzr ]; then - [ -e /backup-etc ] || bzr branch bzr+ssh://martin@piware.de/home/martin/backup/`hostname`-etc /backup-etc - cp -av /backup-etc/* /etc/ - cp -av /backup-etc/.bzr/ /etc/ - rm -rf /backup-etc - chmod 600 /etc/ssh/ssh_*_key - chmod 700 /etc/ssl/private - chmod 640 /etc/ssl/private/ssl-cert-* - chown root:ssl-cert /etc/ssl/private/ssl-cert* - echo "none /tmp tmpfs defaults 0 0" >> /etc/fstab -fi - -# update postfix for new configuration -newaliases -/etc/init.d/postfix restart - -# remove packages that we do not need -killall apt-get || true # cronjob goo -apt-get install -y linux-signed-image-generic -apt-get purge -y --auto-remove hplip hplip-data printer-driver-hpcups brltty bluez-cups gnome-accessibility-themes gnome-orca onboard thunderbird deja-dup gnome-screensaver linux-headers-generic linux-generic || true - -# install packages from network sources -killall apt-get || true -apt-get update - -DEBIAN_FRONTEND=noninteractive eatmydata apt-get install --no-install-recommends -y --force-yes vim patchutils offlineimap diffstat gtimelog devhelp python3-doc manpages-dev weechat weechat-plugins weechat-scripts python-notify2 listadmin quilt mutt editmoin lintian ubuntu-dev-tools dput easytag texlive-lang-german texlive-latex-extra powertop qemu-kvm qemu-utils bzr-buildpackage git build-essential fakeroot devscripts libglib2.0-doc git-buildpackage d-feet libnotify-bin pastebinit lptools openvpn pdfjam sbuild schroot exiv2 gstreamer1.0-plugins-ugly gstreamer1.0-libav valgrind calibre autopkgtest -eatmydata apt-get install -y lxc lxd pandoc lmodern texlive-fonts-recommended pep8 pyflakes pssh network-manager-openvpn-gnome i3-wm i3status - -# have schroot use tmpfs -rmdir /var/lib/schroot/unpack /var/lib/schroot/union/overlay/ -ln -s /tmp /var/lib/schroot/unpack -ln -s /tmp /var/lib/schroot/union/overlay - -# set up users -echo "Setting up users" -adduser martin sbuild -if ! getent passwd joe > /dev/null; then - adduser --gecos "Joe" --encrypt-home joe - adduser joe audio - adduser joe video -fi - -# crontabs -crontab -u martin - </dev/null -EOF -- 2.39.5