Mercurial > hg > soundsoftware-site
view deploy/provision.d/020-users.sh @ 1625:808a40a7cac7 live
Have a go at fixing #570 Can't delete downloadable file from version in project with no issue tracker
author | Chris Cannam |
---|---|
date | Thu, 07 Feb 2019 13:48:00 +0000 |
parents | c18460da6620 |
children |
line wrap: on
line source
#!/bin/bash set -e # The webapp directory is owned and run by the code user, in group # www-data. The repos and other things served directly are the other # way around -- owned by the www-data user, in group code. for user in code docgen ; do if ! grep -q "^$user:" /etc/passwd ; then groupadd "$user" useradd -g "$user" -G www-data "$user" fi done