File: setup.sh

package info (click to toggle)
python-trame 3.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 101,620 kB
  • sloc: python: 13,515; sh: 183; javascript: 93; makefile: 7
file content (16 lines) | stat: -rwxr-xr-x 356 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

if [ ! -d /deploy/server ] && [ ! -d /deploy/setup ]
then
  echo "ERROR: The deploy directory must be mounted into the container at /deploy"
  exit 1
fi

# Fix any uid/gid mismatch
/opt/trame/fix_uid_gid.sh

# Ensure the needed directories exist
gosu trame-user /opt/trame/make_directories.sh

# Restart apache
service apache2 restart