Changed project named from adept to zealot
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2022-09-02 02:04:07 -04:00
parent e6417cf5a3
commit cab06fc350
7 changed files with 28 additions and 28 deletions

View File

@ -1,25 +1,25 @@
#!/bin/sh
GETENT_USER=$(getent passwd adept)
GETENT_GROUP=$(getent group adept)
GETENT_USER=$(getent passwd zealot)
GETENT_GROUP=$(getent group zealot)
# Create the adept user if it doesn't already exist
# Create the zealot user if it doesn't already exist
if [ "$GETENT_USER" = "" ]; then
useradd -r adept
useradd -r zealot
else
echo "The 'adept' user already exists, skipping creation."
echo "The 'zealot' user already exists, skipping creation."
fi
# Create the adept group if it doesn't already exist
# Create the zealot group if it doesn't already exist
if [ "$GETENT_GROUP" = "" ]; then
groupadd adept
usermod -aG adept adept
groupadd zealot
usermod -aG zealot zealot
else
echo "The 'adept' group already exists, skipping creation."
echo "The 'zealot' group already exists, skipping creation."
fi
# Change the directory ownership of /etc
chown -R adept:adept /etc/adept
chown -R zealot:zealot /etc/zealot
#DEBHELPER#