From 6b07c504f398dac9b819d4ef8ebe63f5fd43d1db Mon Sep 17 00:00:00 2001 From: committer Date: Tue, 21 May 2024 07:41:01 -0500 Subject: [PATCH] / renaming to avoid "Where= setting doesn't match unit name. Refusing." https://unix.stackexchange.com/questions/283442/systemd-mount-fails-where-setting-doesnt-match-unit-name --- dots/systemd/{nas.mount => mnt-nas.mount} | 0 scripts/99_deploy.sh | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename dots/systemd/{nas.mount => mnt-nas.mount} (100%) diff --git a/dots/systemd/nas.mount b/dots/systemd/mnt-nas.mount similarity index 100% rename from dots/systemd/nas.mount rename to dots/systemd/mnt-nas.mount diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index ef4197a..8d33cf7 100644 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -178,7 +178,7 @@ if [ ${operation} == "dots" ] ; then deploy_file "${dots_trg}/environment/${file_name}" "${file_path}/${file_name}" no_chown # mounts - file_name=nas.mount + file_name=mnt-nas.mount file_path=/etc/systemd/system trash-put ${file_path}/${file_name} deploy_file "${dots_trg}/systemd/${file_name}" "${file_path}/${file_name}" no_chown @@ -186,8 +186,8 @@ if [ ${operation} == "dots" ] ; then sed -i "s|USERNAME|klevstul|g" "${file_path}/${file_name}" sed -i "s|PASSWORD|${LILLESORTEBOKS}|g" "${file_path}/${file_name}" - mount_target=/mnt/nas - mkdir -p ${mount_target} + #mount_target=/mnt/nas + #mkdir -p ${mount_target} # ---------- # printing