mirror of
https://git.coolaj86.com/coolaj86/gitea-installer.sh.git
synced 2024-11-20 12:34:40 +00:00
no password, no gecos
This commit is contained in:
parent
ba3002dff6
commit
4996f44e52
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user