Remove indentations

This commit is contained in:
iamromulan
2024-02-26 00:29:14 -05:00
committed by GitHub
parent 68a84397b0
commit 1ebd61b7cb

View File

@@ -77,18 +77,18 @@ create_opt_mount() {
# Bind /usrdata/opt to /opt # Bind /usrdata/opt to /opt
echo -e '\033[32mInfo: Setting up /opt mount to /usrdata/opt...\033[0m' echo -e '\033[32mInfo: Setting up /opt mount to /usrdata/opt...\033[0m'
cat <<EOF > /lib/systemd/system/opt.mount cat <<EOF > /lib/systemd/system/opt.mount
[Unit] [Unit]
Description=Bind /usrdata/opt to /opt Description=Bind /usrdata/opt to /opt
[Mount] [Mount]
What=/usrdata/opt What=/usrdata/opt
Where=/opt Where=/opt
Type=none Type=none
Options=bind Options=bind
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl daemon-reload systemctl daemon-reload
systemctl start opt.mount systemctl start opt.mount
@@ -96,17 +96,17 @@ create_opt_mount() {
# Additional systemd service to ensure opt.mount starts at boot # Additional systemd service to ensure opt.mount starts at boot
echo -e '\033[32mInfo: Creating service to start opt.mount at boot...\033[0m' echo -e '\033[32mInfo: Creating service to start opt.mount at boot...\033[0m'
cat <<EOF > /lib/systemd/system/start-opt-mount.service cat <<EOF > /lib/systemd/system/start-opt-mount.service
[Unit] [Unit]
Description=Ensure opt.mount is started at boot Description=Ensure opt.mount is started at boot
After=network.target After=network.target
[Service]
Type=oneshot
ExecStart=/bin/systemctl start opt.mount
[Install] [Service]
WantedBy=multi-user.target Type=oneshot
EOF ExecStart=/bin/systemctl start opt.mount
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload systemctl daemon-reload
ln -s /lib/systemd/system/start-opt-mount.service /lib/systemd/system/multi-user.target.wants/start-opt-mount.service ln -s /lib/systemd/system/start-opt-mount.service /lib/systemd/system/multi-user.target.wants/start-opt-mount.service