diff options
author | onefang | 2020-09-08 21:31:56 +1000 |
---|---|---|
committer | onefang | 2020-09-08 21:31:56 +1000 |
commit | f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b (patch) | |
tree | d78dfa6bf1f8aa4ae47423ddcd3c778be8811e57 /scripts/install/secure.sh | |
parent | Add examples directory. (diff) | |
download | opensim-SC-f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b.zip opensim-SC-f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b.tar.gz opensim-SC-f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b.tar.bz2 opensim-SC-f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b.tar.xz |
Add the old bash scripts.
Most of these will eventually be rewritten as C + Lua.
Diffstat (limited to 'scripts/install/secure.sh')
-rwxr-xr-x | scripts/install/secure.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/install/secure.sh b/scripts/install/secure.sh new file mode 100755 index 0000000..95aae84 --- /dev/null +++ b/scripts/install/secure.sh | |||
@@ -0,0 +1,26 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | source ../common.sh | ||
4 | |||
5 | echo "Securing OpenSim." | ||
6 | sudo chmod 600 ${OS_PATH}/config/*.ini | ||
7 | sudo chmod 600 ${OS_PATH}/config/ROBUST/*.ini | ||
8 | sudo chown -R ${OS_USER}:${OS_USER} ${OS_PATH} | ||
9 | sudo chmod -R 775 ${OS_PATH} | ||
10 | sudo chmod -R a-x ${OS_PATH} | ||
11 | sudo chmod -R a+X ${OS_PATH} | ||
12 | sudo chmod -R g+w ${OS_PATH} | ||
13 | sudo chmod -R a+x ${OS_PATH}/current/*.sh | ||
14 | sudo chmod -R a+x ${OS_PATH}/current/scripts/*.sh | ||
15 | sudo chmod -R a+x ${OS_PATH}/current/scripts/install/*.sh | ||
16 | sudo chmod a+x ${OS_PATH}/current/scripts/show-console | ||
17 | sudo chmod a+x ${OS_PATH}/current/scripts/start-sim | ||
18 | |||
19 | sudo chmod ug+rwx ${OS_PATH}/config | ||
20 | sudo chmod g+s ${OS_PATH}/config | ||
21 | sudo chmod 600 ${OS_PATH}/config/*.ini | ||
22 | sudo chmod 600 ${OS_PATH}/config/ROBUST/*.ini | ||
23 | |||
24 | chmod ug+rwx ${OS_PATH}/caches | ||
25 | chmod o-rwx ${OS_PATH}/caches | ||
26 | chmod g+s ${OS_PATH}/caches | ||