Skip to content

Commit

Permalink
setting permissions and user
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Hannig committed Nov 16, 2016
1 parent 1b37d8e commit 8804e5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy/after_install
Expand Up @@ -9,11 +9,13 @@ useradd --system -d /opt/ecix/$SERVICE $SERVICE
# Initialize venv
cd /opt/ecix/$SERVICE && ./bin/venv_init

echo "[i] Fixing permissions"
chown -R $SERVICE:$SERVICE /opt/ecix/$SERVICE

echo "[i] Clearing bytecode cache files"
find /opt/ecix/$SERVICE -name "*.pyc" -exec rm {} \;
find /opt/ecix/$SERVICE -name "__pycache__" -exec rm -fr {} \;


SERVICE_STATUS=$(status $SERVICE)
if [[ $SERVICE_STATUS == *"stop"* ]]
then
Expand Down

0 comments on commit 8804e5b

Please sign in to comment.