no password, no gecos

This commit is contained in:
AJ ONeal 2017-10-28 00:09:04 +00:00
parent ba3002dff6
commit 4996f44e52
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
#!/bin/bash
# wget -O install-gitea.bash https://git.coolaj86.com/coolaj86/gitea-installer/raw/master/install.bash; bash install-gitea.bash
# or
# wget -O - https://git.coolaj86.com/coolaj86/gitea-installer/raw/master/install.bash | bash
# Create a 'gitea' user and group with the home /opt/gitea
sudo adduser gitea --home /opt/gitea
# Create a 'gitea' user and group with the home /opt/gitea, no password (because it's a system user) and no GECOS
sudo adduser gitea --home /opt/gitea --disabled-password --gecos ''
# Make some other potentially useful directories for that user/group
sudo mkdir -p /opt/gitea/ /var/log/gitea