Created
December 2, 2010 06:51
-
-
Save robotarmy/724906 to your computer and use it in GitHub Desktop.
OpenBSD support for RVM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- no-obsd Fri Dec 3 15:45:25 2010 | |
+++ with-obsd Fri Dec 3 15:44:13 2010 | |
@@ -42,6 +42,7 @@ | |
echo "Creating the group '$1'" | |
case "$os_type" in | |
+ "OpenBSD") groupadd "$rvm_group_name";; | |
"FreeBSD") pw groupadd -q "$rvm_group_name";; | |
"Linux") groupadd -f "$rvm_group_name";; | |
"Darwin") | |
@@ -72,6 +73,7 @@ | |
echo "Adding '$1' to the group '$2'" | |
case "$os_type" in | |
+ "OpenBSD") usermod -G "$2" "$1";; | |
"FreeBSD") pw usermod "$1" -G "$2";; | |
"Linux") usermod -a -G "$2" "$1";; | |
"Darwin") dscl . -append "/Groups/$2" GroupMembership "$1";; | |
@@ -92,7 +94,7 @@ | |
echo "Please ensure git is installed and available in PATH to continue." >&2 | |
exit 1 | |
-elif [[ "$os_type" != "Linux" && "$os_type" != "FreeBSD" && "$os_type" != "Darwin" ]]; then | |
+elif [[ "$os_type" != "OpenBSD" && "$os_type" != "Linux" && "$os_type" != "FreeBSD" && "$os_type" != "Darwin" ]]; then | |
echo "The rvm system wide installer currently only supports Linux, FreeBSD, and Darwin." >&2 | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment