Skip to content

Commit

Permalink
Add onlyoffice user by useradd
Browse files Browse the repository at this point in the history
`useradd` exist on any linux system
but `adduser` not exists on arch linux at least
  • Loading branch information
ShockwaveNN authored and agolybev committed Jul 13, 2018
1 parent e1134f3 commit e92f2fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ clean:
rm -rf $(CORE_FONTS) $(OUTPUT) $(GRUNT_FILES)

install:
sudo adduser --quiet --home /var/www/onlyoffice --system --group onlyoffice
sudo mkdir -pv /var/www/onlyoffice
if ! sudo id -u onlyoffice > /dev/null 2>&1; then sudo useradd -m -d /var/www/onlyoffice -r -U onlyoffice; fi

sudo mkdir -p /var/www/onlyoffice/documentserver
sudo mkdir -p /var/www/onlyoffice/documentserver/fonts
Expand Down

0 comments on commit e92f2fe

Please sign in to comment.