ottertune/server/website/script/fix_permissions.py

12 lines
287 B
Python
Raw Permalink Normal View History

2019-08-23 08:47:19 -07:00
#
# OtterTune - fix_permissions.py
#
# Copyright (c) 2017-18, Carnegie Mellon University Database Group
#
from fabric.api import local
PATH = "/var/www/ottertune"
USER = "www-data"
local("sudo chown -R {0}:{0} {1}".format(USER, PATH))
local("sudo chmod -R ugo+rX,ug+w {}".format(PATH))