mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
Remove pkg-install in favor of files/pkg-install.in added in last
update.
This commit is contained in:
parent
bbb523844a
commit
3e79eb1f16
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=142316
@ -1,34 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
u=sgeadmin
|
||||
g=sgeadmin
|
||||
ugid=103
|
||||
homedir=/nonexistent
|
||||
shell=/sbin/nologin
|
||||
comment="Sun Grid Engine Admin"
|
||||
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
if pw group show "${g}" >/dev/null 2>&1; then
|
||||
echo "Using existing group \"${g}\"."
|
||||
else
|
||||
echo "Creating group \"${g}\", (gid: ${ugid})."
|
||||
pw groupadd ${g} -g ${ugid}
|
||||
if [ $? != 0 ]; then
|
||||
echo "Failed to add group \"${g}\"."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
if pw user show "${u}" >/dev/null 2>&1; then
|
||||
echo "Using existing user \"${u}\"."
|
||||
else
|
||||
echo "Creating user \"${u}\", (uid: ${ugid})."
|
||||
pw useradd ${u} -u ${ugid} -g ${ugid} -h - \
|
||||
-d ${homedir} -s ${shell} -c "${comment}"
|
||||
if [ $? != 0 ]; then
|
||||
echo "Failed to add user \"${u}\"."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
@ -1,34 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
u=sgeadmin
|
||||
g=sgeadmin
|
||||
ugid=103
|
||||
homedir=/nonexistent
|
||||
shell=/sbin/nologin
|
||||
comment="Sun Grid Engine Admin"
|
||||
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
if pw group show "${g}" >/dev/null 2>&1; then
|
||||
echo "Using existing group \"${g}\"."
|
||||
else
|
||||
echo "Creating group \"${g}\", (gid: ${ugid})."
|
||||
pw groupadd ${g} -g ${ugid}
|
||||
if [ $? != 0 ]; then
|
||||
echo "Failed to add group \"${g}\"."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
if pw user show "${u}" >/dev/null 2>&1; then
|
||||
echo "Using existing user \"${u}\"."
|
||||
else
|
||||
echo "Creating user \"${u}\", (uid: ${ugid})."
|
||||
pw useradd ${u} -u ${ugid} -g ${ugid} -h - \
|
||||
-d ${homedir} -s ${shell} -c "${comment}"
|
||||
if [ $? != 0 ]; then
|
||||
echo "Failed to add user \"${u}\"."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
@ -1,34 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
u=sgeadmin
|
||||
g=sgeadmin
|
||||
ugid=103
|
||||
homedir=/nonexistent
|
||||
shell=/sbin/nologin
|
||||
comment="Sun Grid Engine Admin"
|
||||
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
if pw group show "${g}" >/dev/null 2>&1; then
|
||||
echo "Using existing group \"${g}\"."
|
||||
else
|
||||
echo "Creating group \"${g}\", (gid: ${ugid})."
|
||||
pw groupadd ${g} -g ${ugid}
|
||||
if [ $? != 0 ]; then
|
||||
echo "Failed to add group \"${g}\"."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
if pw user show "${u}" >/dev/null 2>&1; then
|
||||
echo "Using existing user \"${u}\"."
|
||||
else
|
||||
echo "Creating user \"${u}\", (uid: ${ugid})."
|
||||
pw useradd ${u} -u ${ugid} -g ${ugid} -h - \
|
||||
-d ${homedir} -s ${shell} -c "${comment}"
|
||||
if [ $? != 0 ]; then
|
||||
echo "Failed to add user \"${u}\"."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
@ -1,34 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
u=sgeadmin
|
||||
g=sgeadmin
|
||||
ugid=103
|
||||
homedir=/nonexistent
|
||||
shell=/sbin/nologin
|
||||
comment="Sun Grid Engine Admin"
|
||||
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
if pw group show "${g}" >/dev/null 2>&1; then
|
||||
echo "Using existing group \"${g}\"."
|
||||
else
|
||||
echo "Creating group \"${g}\", (gid: ${ugid})."
|
||||
pw groupadd ${g} -g ${ugid}
|
||||
if [ $? != 0 ]; then
|
||||
echo "Failed to add group \"${g}\"."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
if pw user show "${u}" >/dev/null 2>&1; then
|
||||
echo "Using existing user \"${u}\"."
|
||||
else
|
||||
echo "Creating user \"${u}\", (uid: ${ugid})."
|
||||
pw useradd ${u} -u ${ugid} -g ${ugid} -h - \
|
||||
-d ${homedir} -s ${shell} -c "${comment}"
|
||||
if [ $? != 0 ]; then
|
||||
echo "Failed to add user \"${u}\"."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
Loading…
Reference in New Issue
Block a user