/ 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
This commit is contained in:
committer
2024-05-21 07:41:01 -05:00
parent a3da30a2e6
commit 6b07c504f3
2 changed files with 3 additions and 3 deletions

View File

@@ -178,7 +178,7 @@ if [ ${operation} == "dots" ] ; then
deploy_file "${dots_trg}/environment/${file_name}" "${file_path}/${file_name}" no_chown deploy_file "${dots_trg}/environment/${file_name}" "${file_path}/${file_name}" no_chown
# mounts # mounts
file_name=nas.mount file_name=mnt-nas.mount
file_path=/etc/systemd/system file_path=/etc/systemd/system
trash-put ${file_path}/${file_name} trash-put ${file_path}/${file_name}
deploy_file "${dots_trg}/systemd/${file_name}" "${file_path}/${file_name}" no_chown 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|USERNAME|klevstul|g" "${file_path}/${file_name}"
sed -i "s|PASSWORD|${LILLESORTEBOKS}|g" "${file_path}/${file_name}" sed -i "s|PASSWORD|${LILLESORTEBOKS}|g" "${file_path}/${file_name}"
mount_target=/mnt/nas #mount_target=/mnt/nas
mkdir -p ${mount_target} #mkdir -p ${mount_target}
# ---------- # ----------
# printing # printing