This commit is contained in:
tuxwarrior
2024-05-06 17:26:33 -05:00
parent 5456383839
commit ac91fd1502

View File

@@ -62,16 +62,14 @@ the_file=/etc/fstab
if [ -f "${the_file}" ]; then if [ -f "${the_file}" ]; then
if ! more ${the_file} | grep 'syncDir' if ! more ${the_file} | grep 'syncDir'
then then
echo echo ""
echo "" | sudo tee -a ${the_file} echo "" | sudo tee -a ${the_file}
echo "# auto mount syncDir" | sudo tee -a ${the_file} echo "# auto mount syncDir" | sudo tee -a ${the_file}
echo "${src_dir} ${trg_dir} auto defaults,nofail,nobootwait,bind 0 2" | sudo tee -a ${the_file} echo "${src_dir} ${trg_dir} auto defaults,nofail,nobootwait,bind 0 2" | sudo tee -a ${the_file}
echo echo "> auto mount of syncDir added to '${the_file}'"
echo "auto mount of syncDir added to '${the_file}'"
else else
echo echo "> auto mount of syncDir already existed in '${the_file}'"
echo "auto mount of syncDir already existed in '${the_file}'"
fi fi
fi fi