aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/install/secure.sh
blob: 48255b6f0c0fd716da226316fb6a1e22c07c8916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

source ../common.sh

echo "Securing OpenSim."
sudo chmod 600 ${OS_PATH}/config/*.ini
sudo chown -R ${OS_USER}:${OS_USER} ${OS_PATH}
sudo chmod -R 775 ${OS_PATH}
sudo chmod -R a-x ${OS_PATH}
sudo chmod -R a+X ${OS_PATH}
sudo chmod -R g+w ${OS_PATH}
sudo chmod -R a+x ${OS_PATH}/current/*.sh
sudo chmod -R a+x ${OS_PATH}/current/scripts/*.sh
sudo chmod -R a+x ${OS_PATH}/current/scripts/install/*.sh
sudo chmod a+x ${OS_PATH}/current/scripts/show-console
sudo chmod a+x ${OS_PATH}/current/scripts/start-sim

sudo chmod ug+rwx  ${OS_PATH}/config
sudo chmod g+s     ${OS_PATH}/config
sudo chmod 600 ${OS_PATH}/config/*.ini