spaceport/fix_permissions.sh

23 lines
411 B
Bash
Raw Normal View History

2020-02-08 01:05:02 +00:00
#!/bin/bash
2020-05-07 05:01:18 +00:00
# restrict everything
2020-02-08 01:05:02 +00:00
chown -R spaceport:spaceport .
2020-05-07 05:01:18 +00:00
chmod -R ug=rwX,o= .
# allow access to static folders
chmod o=rX .
chmod o=rX webclient/
chmod -R o=rX webclient/build/
chmod o=rX apiserver/
chmod o=rX apiserver/data/
chmod -R o=rX apiserver/data/static/
chmod -R o=rX apiserver/backups/
chmod o=rX apiserver/docs/
chmod o=rX apiserver/docs/build/
chmod -R o=rX apiserver/docs/build/html