Changed project named from adept to zealot
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@ -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#
|
||||
|
||||
|
Reference in New Issue
Block a user