diff options
Diffstat (limited to '')
-rwxr-xr-x | fix_var_run.sh | 6 | ||||
-rwxr-xr-x | install_opensim.sh | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/fix_var_run.sh b/fix_var_run.sh new file mode 100755 index 0000000..97567cb --- /dev/null +++ b/fix_var_run.sh | |||
@@ -0,0 +1,6 @@ | |||
1 | # Create the opensim run dir. | ||
2 | mkdir -p /var/run/opensim | ||
3 | chown opensim:opensim /var/run/opensim | ||
4 | chmod ug+rwx /var/run/opensim | ||
5 | chmod o-rwx /var/run/opensim | ||
6 | chmod g+s /var/run/opensim | ||
diff --git a/install_opensim.sh b/install_opensim.sh index 1967e36..42472fd 100755 --- a/install_opensim.sh +++ b/install_opensim.sh | |||
@@ -40,9 +40,7 @@ sudo chmod 644 /home/opensim/.tmux.conf | |||
40 | sudo mkdir -p /var/log/opensim | 40 | sudo mkdir -p /var/log/opensim |
41 | sudo chown opensim:opensim /var/log/opensim | 41 | sudo chown opensim:opensim /var/log/opensim |
42 | sudo chmod 757 /var/log/opensim | 42 | sudo chmod 757 /var/log/opensim |
43 | sudo mkdir -p /var/run/opensim | 43 | sudo ./fix_var_run.sh |
44 | sudo chown opensim:opensim /var/run/opensim | ||
45 | sudo chmod 42770 /var/run/opensim | ||
46 | sudo mkdir -p $OSPATH/backups $OSPATH/caches/assetcache $OSPATH/config $OSPATH/setup | 44 | sudo mkdir -p $OSPATH/backups $OSPATH/caches/assetcache $OSPATH/config $OSPATH/setup |
47 | sudo chown opensim:opensim $OSPATH | 45 | sudo chown opensim:opensim $OSPATH |
48 | sudo chown -R opensim:opensim $OSPATH | 46 | sudo chown -R opensim:opensim $OSPATH |