Initial commit.
This commit is contained in:
commit
3d665e5e11
72 changed files with 3200 additions and 0 deletions
40
01-install-base-files
Executable file
40
01-install-base-files
Executable file
|
@ -0,0 +1,40 @@
|
|||
#!/bin/bash
|
||||
|
||||
umask 022
|
||||
|
||||
# Install the LetsEncrypt CA bundles, to stop wget moaning.
|
||||
cp -R ca-certificates /usr/local/share
|
||||
update-ca-certificates
|
||||
|
||||
# Install memtest86 into /boot.
|
||||
# Only install if /boot exists, so we are container compatible.
|
||||
[ -e /boot ] && cp memtest86+ /boot
|
||||
|
||||
# Install root's new crontab.
|
||||
cat root.crontab >/var/spool/cron/crontabs/root
|
||||
/etc/rc.d/rc.crond restart
|
||||
|
||||
# Install the /etc files.
|
||||
cd base-files
|
||||
IFS=$'\n'
|
||||
for dir in $(find . -type d | sort | sed -re 's/^\.\///'); do
|
||||
mkdir -p -m 755 /etc/$dir
|
||||
done
|
||||
for file in $(find . -type f | sort | sed -re 's/^\.\///'); do
|
||||
cat "$file" >"/etc/$file"
|
||||
done
|
||||
|
||||
# Correct file/directory specific permissions.
|
||||
chmod 755 /etc/cron.daily/update-slackpkg-template
|
||||
chmod 755 /etc/cron.daily/warn-git-status
|
||||
chmod 755 /etc/cron.hourly/log-acls
|
||||
chmod 755 /etc/initscript
|
||||
chmod 755 /etc/profile.d/biff.csh
|
||||
chmod 755 /etc/profile.d/biff.sh
|
||||
chmod 755 /etc/profile.d/lang.csh
|
||||
chmod 755 /etc/profile.d/lang.sh
|
||||
chmod 755 /etc/profile.d/less.csh
|
||||
chmod 755 /etc/profile.d/less.sh
|
||||
chmod 755 /etc/profile.d/optpaths.csh
|
||||
chmod 755 /etc/profile.d/optpaths.sh
|
||||
chmod 750 /etc/sudoers.d
|
Loading…
Add table
Add a link
Reference in a new issue