Copy rc.d files in during bootstrap.

This commit is contained in:
Darren 'Tadgy' Austin 2022-08-23 03:25:13 +01:00
commit cce10e6f5c

View file

@ -19,7 +19,7 @@ update-ca-certificates
echo "-> Changing root's crontab..."
cat root.crontab >/var/spool/cron/crontabs/root
# Install the /etc files (which includes crontabs).
# Install the /etc files, which includes crontabs (permissions corrected below).
echo "-> Copying base files into /etc..."
( cd base-files
IFS=$'\n'
@ -30,6 +30,11 @@ echo "-> Copying base files into /etc..."
cat "$file" >"/etc/$file"
done )
# Copy in the rc.d files (permissions corrected below)
echo "-> Copying base rc.d files into /etc/rc.d..."
cp rc.d/rc.local rc.d/rc.modules.local rc.d/rc.firewall rc.d/rc.local_shutdown /etc/rc.d/
echo "----> Generic blocking rc.firewall installed - change it if required."
# Restart crond for new configurations.
echo "-> Restarting crond..."
/etc/rc.d/rc.crond restart