Update commands_share.sh

This commit is contained in:
MacRimi
2025-09-10 13:46:02 +02:00
parent f0bc238b6d
commit dd737f4b46

View File

@@ -216,12 +216,19 @@ show_nfs_server_help() {
"" \ "" \
"" ""
show_command "4" \ show_command "4.1" \
"$(translate "Configure exports:")" \ "$(translate "Configure exports (safe root_squash):")" \
"echo '${CUS}/mnt/nfs_export${CL} ${CUS}192.168.1.0/24${CL}(rw,sync,no_subtree_check)' >> /etc/exports" \ "echo '${CUS}/mnt/nfs_export${CL} ${CUS}192.168.1.0/24${CL}(rw,sync,no_subtree_check,root_squash)' >> /etc/exports" \
"$(translate "Replace directory path and network range.")" \ "$(translate "Replace directory path and network range.")" \
"" ""
show_command "4.2" \
"$(translate "Configure exports (map all users):")" \
"echo '${CUS}/mnt/nfs_export${CL} ${CUS}192.168.1.0/24${CL}(rw,sync,no_subtree_check,all_squash,anonuid=0,anongid=0)' >> /etc/exports" \
"$(translate "Replace directory path and network range.")" \
""
show_command "5" \ show_command "5" \
"$(translate "Apply configuration:")" \ "$(translate "Apply configuration:")" \
"exportfs -ra" \ "exportfs -ra" \