mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
More restrictive socket permissions
This commit is contained in:
12
installer
vendored
12
installer
vendored
@@ -194,7 +194,7 @@ class SystemInstaller:
|
|||||||
pidfile=/tmp/pyShelf.pid
|
pidfile=/tmp/pyShelf.pid
|
||||||
vacuum=True
|
vacuum=True
|
||||||
socket=/tmp/pyshelf_wsgi.sock
|
socket=/tmp/pyshelf_wsgi.sock
|
||||||
chmod-socket=777
|
chmod-socket=664
|
||||||
""" % (
|
""" % (
|
||||||
root,
|
root,
|
||||||
)
|
)
|
||||||
@@ -325,6 +325,16 @@ if RequiredServices().db_server_found(req) is False:
|
|||||||
|
|
||||||
# Post install configurations
|
# Post install configurations
|
||||||
sysinstall.make_nginx_config(install_answers)
|
sysinstall.make_nginx_config(install_answers)
|
||||||
|
try:
|
||||||
|
os.chdir("src/")
|
||||||
|
os.system("python manage.py makemigrations")
|
||||||
|
os.system("python manage.py makemigrations interface")
|
||||||
|
os.system("python manage.py migrate")
|
||||||
|
os.system("python manage.py migrate interface")
|
||||||
|
os.chdir("../")
|
||||||
|
except Exception as e:
|
||||||
|
print("-"*80)
|
||||||
|
print(" E:"+e)
|
||||||
try:
|
try:
|
||||||
copy_config = sysinstall.copy_config()
|
copy_config = sysinstall.copy_config()
|
||||||
if copy_config:
|
if copy_config:
|
||||||
|
|||||||
Reference in New Issue
Block a user