Skip to content

Commit

Permalink
Merge pull request #1895 from fva-dev/issue#1347
Browse files Browse the repository at this point in the history
Issues with afp share name #1347
  • Loading branch information
schakrava authored Apr 16, 2018
2 parents 67cf445 + 3e7eb1b commit caae123
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/rockstor/storageadmin/views/netatalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ def post(self, request):
try:
for share in shares:
mnt_pt = ('%s%s' % (settings.MNT_PT, share.name))
cur_description = '%s %s' % (share.name, description)
if (len(shares) == 1 and description != self.def_description):
cur_description = '%s' % share.name
#cur_description = '%s %s' % (share.name, description)
if (len(shares) == 1 and description != self.def_description and share.name == ''):
cur_description = description
afpo = NetatalkShare(share=share, path=mnt_pt,
description=cur_description,
Expand Down
4 changes: 3 additions & 1 deletion src/rockstor/system/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ def refresh_afp_config(afpl):
rockstor_section = False
tfo.write('; Netatalk 3.x configuration file\n\n')
tfo.write('[Global]\n')
tfo.write('mimic model = RackMac\n\n')
tfo.write('mimic model = RackMac\n')
tfo.write('uam list = uams_dhx.so,uams_dhx2.so\n')
tfo.write('save password = no\n\n')
for line in afo.readlines():
if (re.match(';####BEGIN: Rockstor AFP CONFIG####', line)
is not None):
Expand Down

0 comments on commit caae123

Please sign in to comment.