mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 11:46:49 +00:00
fix(docker): the database, secret key and settings are private to the app user in the container
This commit is contained in:
parent
6031a7d3fb
commit
57cbe5b63b
1 changed files with 4 additions and 0 deletions
|
|
@ -46,3 +46,7 @@ echo "* Running database migrations..."
|
|||
chown -R www-data:www-data "$DATA_DIR" "/var/www/.ssh"
|
||||
chown www-data:www-data "$APP_DIR/webvirtcloud/settings.py" 2>/dev/null || true
|
||||
chmod 700 "/var/www/.ssh" 2>/dev/null || true
|
||||
# The database holds compute passwords and password hashes; keep it, the
|
||||
# secret key and settings private to the app user (as the installer does)
|
||||
chmod 700 "$DATA_DIR"
|
||||
chmod 600 "$DATA_DIR/db.sqlite3" "$APP_DIR/webvirtcloud/settings.py"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue