Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix to dining menu file permissions problem [#563]

  • Loading branch information...
commit 98a4ca15f9995a6e72a278c7d1ac15c3b8655666 1 parent eda507a
David Ormsbee authored

Showing 1 changed file with 8 additions and 4 deletions. Show diff stats Hide diff stats

  1. +8 4 mobi-scripts/reload-dining.sh
12 mobi-scripts/reload-dining.sh
@@ -2,7 +2,11 @@
2 2
3 3 # Crontab entry: 15 06 * * 0 /opt/mitmobile/bin/reload-dining.sh
4 4
5   -# The sudo is here so that people running this script as "sudo ./reload-dining.sh"
6   -# don't accidentally make the file owned by root (breaking future attempts to
7   -# copy by apache).
8   -sudo -u apache cp /home/huds/upload/menu.csv /opt/mitmobile/static/menu.csv
  5 +cp /home/huds/upload/menu.csv /opt/mitmobile/static/menu.csv
  6 +
  7 +# This is supposed to be run by user apache, but it might be run by someone
  8 +# doing sudo ./reload-dining.sh --> so make sure we set the permissions properly
  9 +# in that case.
  10 +
  11 +chown apache /opt/mitmobile/static/menu.csv
  12 +chgrp apache /opt/mitmobile/static/menu.csv

0 comments on commit 98a4ca1

Please sign in to comment.
Something went wrong with that request. Please try again.