/ 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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user