summaryrefslogtreecommitdiff
path: root/sbhs-startup.conf
diff options
context:
space:
mode:
Diffstat (limited to 'sbhs-startup.conf')
-rw-r--r--sbhs-startup.conf18
1 files changed, 18 insertions, 0 deletions
diff --git a/sbhs-startup.conf b/sbhs-startup.conf
new file mode 100644
index 0000000..c38ac4d
--- /dev/null
+++ b/sbhs-startup.conf
@@ -0,0 +1,18 @@
+description "Grants necessary file permissions to apache and runs server cronjob"
+author "rupakrokade@gmail.com"
+
+start on runlevel [2345]
+
+script
+
+ chown -R vlabs-sbhs:www-data /home/vlabs-sbhs/code/sbhs
+ chown -R www-data:www-data /home/vlabs-sbhs/code/sbhs/log
+ chown -R www-data:www-data /home/vlabs-sbhs/code/sbhs/experiments
+ chmod -R 766 /home/vlabs-sbhs/code/sbhs/log
+ chmod -R 766 /home/vlabs-sbhs/code/sbhs/experiments
+ chmod -R g+w /home/vlabs-sbhs/code/sbhs/production_static_files/img/webcam
+ cd /home/vlabs-sbhs/code/sbhs
+ bash new_cron_job.sh
+ bash synctime.sh
+
+end script