hep-gc / shoal

A squid cache publishing and advertising tool designed to work in fast changing environments
Apache License 2.0
4 stars 8 forks source link

updated shoal-agent spec file to work with the latest code #170

Closed MCatherine1994 closed 3 years ago

MCatherine1994 commented 3 years ago
MarcusEbert commented 3 years ago

We can check /etc/group (for group) and /etc/passwd (for user) for existing entries before creating the group or user. e.g. for group check something like this should work: if [ $(grep -c "^shoal" /etc/group) -eq 0 ]; then groupadd shoal fi