#!/bin/bash

source /opt/scripts_local/shared_functions.sh

download_template /mnt/union/scripts/delayed_mount.sh /opt/scripts_local/delayed_mount.sh
chmod +x /opt/scripts_local/delayed_mount.sh
download_template /mnt/union/shared/etc/systemd/system/delayed_mount.service /etc/systemd/system/delayed_mount.service
chmod 755 /etc/systemd/system/delayed_mount.service
systemctl daemon-reload
systemctl enable delayed_mount.service
systemctl start delayed_mount.service
 
