From 0acc2e4d6f634f7158f8b674094d75d7e2d75817 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 6 Feb 2012 11:20:47 +1000 Subject: Write a new script to deal with /var/run, and use it. --- fix_var_run.sh | 6 ++++++ install_opensim.sh | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100755 fix_var_run.sh 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 @@ +# Create the opensim run dir. +mkdir -p /var/run/opensim +chown opensim:opensim /var/run/opensim +chmod ug+rwx /var/run/opensim +chmod o-rwx /var/run/opensim +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 sudo mkdir -p /var/log/opensim sudo chown opensim:opensim /var/log/opensim sudo chmod 757 /var/log/opensim -sudo mkdir -p /var/run/opensim -sudo chown opensim:opensim /var/run/opensim -sudo chmod 42770 /var/run/opensim +sudo ./fix_var_run.sh sudo mkdir -p $OSPATH/backups $OSPATH/caches/assetcache $OSPATH/config $OSPATH/setup sudo chown opensim:opensim $OSPATH sudo chown -R opensim:opensim $OSPATH -- cgit v1.1