Update installentware.sh

This commit is contained in:
iamromulan
2024-02-05 00:19:32 -05:00
committed by GitHub
parent 73a805ad4e
commit 34d1ae89e4

View File

@@ -92,6 +92,25 @@ EOF
systemctl daemon-reload systemctl daemon-reload
systemctl start opt.mount systemctl start opt.mount
# Additional systemd service to ensure opt.mount starts at boot
echo 'Info: Creating service to start opt.mount at boot...'
cat <<EOF > /lib/systemd/system/start-opt-mount.service
[Unit]
Description=Ensure opt.mount is started at boot
After=network.target
[Service]
Type=oneshot
ExecStart=/bin/systemctl start opt.mount
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
ln -s /lib/systemd/system/start-opt-mount.service /lib/systemd/system/multi-user.target.wants/start-opt-mount.service
# Update /etc/profile for PATH # Update /etc/profile for PATH
echo 'Info: Updating /etc/profile for PATH...' echo 'Info: Updating /etc/profile for PATH...'
if ! grep -q 'PATH=.*opt/bin' /etc/profile; then if ! grep -q 'PATH=.*opt/bin' /etc/profile; then