Merged in [19987] from rjsparks@nostrum.com:
Change generated draft/group alias/virtual file permissions. - Legacy-Id: 19988 Note: SVN reference [19987] has been migrated to Git commit 8deca64b31d95dc1f9c77eea6e7fe66f4c0e0f06
This commit is contained in:
parent
ff4c3e7d51
commit
6968252afb
|
@ -9,6 +9,7 @@ import io
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
|
import stat
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from tempfile import mkstemp
|
from tempfile import mkstemp
|
||||||
|
@ -169,6 +170,9 @@ class Command(BaseCommand):
|
||||||
afile.close()
|
afile.close()
|
||||||
vfile.close()
|
vfile.close()
|
||||||
|
|
||||||
|
os.chmod(aname, stat.S_IWUSR|stat.S_IRUSR|stat.S_IRGRP|stat.S_IROTH)
|
||||||
|
os.chmod(vname, stat.S_IWUSR|stat.S_IRUSR|stat.S_IRGRP|stat.S_IROTH)
|
||||||
|
|
||||||
shutil.move(aname, settings.DRAFT_ALIASES_PATH)
|
shutil.move(aname, settings.DRAFT_ALIASES_PATH)
|
||||||
shutil.move(vname, settings.DRAFT_VIRTUAL_PATH)
|
shutil.move(vname, settings.DRAFT_VIRTUAL_PATH)
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ import datetime
|
||||||
import io
|
import io
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import stat
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from tempfile import mkstemp
|
from tempfile import mkstemp
|
||||||
|
@ -96,5 +97,8 @@ class Command(BaseCommand):
|
||||||
afile.close()
|
afile.close()
|
||||||
vfile.close()
|
vfile.close()
|
||||||
|
|
||||||
|
os.chmod(aname, stat.S_IWUSR|stat.S_IRUSR|stat.S_IRGRP|stat.S_IROTH)
|
||||||
|
os.chmod(vname, stat.S_IWUSR|stat.S_IRUSR|stat.S_IRGRP|stat.S_IROTH)
|
||||||
|
|
||||||
shutil.move(aname, settings.GROUP_ALIASES_PATH)
|
shutil.move(aname, settings.GROUP_ALIASES_PATH)
|
||||||
shutil.move(vname, settings.GROUP_VIRTUAL_PATH)
|
shutil.move(vname, settings.GROUP_VIRTUAL_PATH)
|
||||||
|
|
Loading…
Reference in a new issue