post_install_sid.sh: add apticron to send a email when pending updates.
This commit is contained in:
parent
912ffef047
commit
8651975f10
@ -3,6 +3,10 @@
|
||||
|
||||
### 0.3.1
|
||||
|
||||
#### Packages
|
||||
##### Add
|
||||
* apticron to send daily email about pending upgrades.
|
||||
|
||||
#### Changes
|
||||
* Use a function to remove some packages and purge all configuration files.
|
||||
* Add a forwarding of root's mails to new user email address.
|
||||
|
@ -117,6 +117,7 @@ sudo post_install_sid.sh
|
||||
##### Add
|
||||
* acpitool: Command line ACPI client for laptop users (apm replacement).
|
||||
* alien: Convert and install rpm and other packages.
|
||||
* apticron: Simple tool to mail about pending package updates.
|
||||
* apt-file: Search tool for files within Debian packages.
|
||||
* apt-listbugs: Tool which lists critical bugs before each APT installation.
|
||||
* List all pending bugs of a package:
|
||||
|
@ -135,6 +135,10 @@ grub_timeout='5'
|
||||
new_username=$(ls -1 /home | grep -v "lost+found" | tail -n 1)
|
||||
new_user_mail="${new_username}"
|
||||
|
||||
# Strate 1 server from Paris Astronomical Observatory (obspm)
|
||||
# http://syrte.obspm.fr/informatique/ntp_infos.php
|
||||
ntp_server='ntp-p1.obspm.fr'
|
||||
|
||||
# Load personnal informations (new_username, new_user_mail, …) and override some variables
|
||||
if [ -f ${script_path}/informations ]; then
|
||||
. ${script_path}/informations
|
||||
@ -609,7 +613,7 @@ aptins "Dev tools" build-essential binutils cpp debconf-utils gcc g++ make
|
||||
preconfig hddtemp
|
||||
|
||||
##### Installation
|
||||
aptins "Admin tools for cli" acpitool alien apt-file apt-listbugs apt-rdepends apt-show-source apt-show-versions dctrl-tools debian-goodies dnsutils git git-svn gpm hddtemp htop ifscheme mlocate mercurial module-assistant ncdu netdiscover netselect-apt nmap ntp parted pastebinit rsyslog sudo sysv-rc-conf tcpdump tree
|
||||
aptins "Admin tools for cli" acpitool alien apticron apt-file apt-listbugs apt-rdepends apt-show-source apt-show-versions dctrl-tools debian-goodies dnsutils git git-svn gpm hddtemp htop ifscheme mlocate mercurial module-assistant ncdu netdiscover netselect-apt nmap ntp parted pastebinit rsyslog sudo sysv-rc-conf tcpdump tree
|
||||
|
||||
##### Post-configuration
|
||||
###### apt-file: Synchronize the package contents from their sources.
|
||||
@ -629,17 +633,12 @@ cp ${script_path}/modprobe.d/blacklist-beep.conf /etc/modprobe.d/
|
||||
# Ensure to blacklist dangerous modules (firewire, thunderbolt, …)
|
||||
cp ${script_path}/modprobe.d/blacklist-dma.conf /etc/modprobe.d/
|
||||
|
||||
|
||||
###### Ntp: Set a better NTP server (strate 1) for french computer.
|
||||
# On commente les serveurs ntp définis par défaut
|
||||
sed -i "s/^server/#server/g" /etc/ntp.conf
|
||||
cat >> /etc/ntp.conf << EOF
|
||||
# Serveur de strate 1 fourni par l'observatoire astronomique de Paris (obspm)
|
||||
# http://syrte.obspm.fr/informatique/ntp_infos.php
|
||||
server ntp-p1.obspm.fr
|
||||
EOF
|
||||
# Restart NTP service to apply the new server
|
||||
systemctl restart ntp
|
||||
###### Ntp: Set a better NTP server.
|
||||
if [ ! "$(grep "server ${ntp_server}" /etc/ntp.conf)" ]; then
|
||||
sed -i "s/^server.*/server ${ntp_server}/g" /etc/ntp.conf
|
||||
# Restart NTP service to apply the new server
|
||||
systemctl restart ntp
|
||||
fi
|
||||
|
||||
###### Rsyslog: Enable Rsyslog in tty9
|
||||
sed -i '/#daemon,mail.\*;/{:label;/^$/q;s/^#//;n;s/^#//;t label;}' /etc/rsyslog.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user