Skip to content

Instantly share code, notes, and snippets.

@Ch00k
Created August 21, 2013 08:59
Show Gist options
  • Select an option

  • Save Ch00k/6292021 to your computer and use it in GitHub Desktop.

Select an option

Save Ch00k/6292021 to your computer and use it in GitHub Desktop.
diff --git a/config/solaris/noask b/config/solaris/noask
deleted file mode 100644
index 7862beb..0000000
--- a/config/solaris/noask
+++ /dev/null
@@ -1,11 +0,0 @@
-mail=
-instance=overwrite
-partial=nocheck
-runlevel=nocheck
-idepend=nocheck
-rdepend=nocheck
-space=nocheck
-setuid=nocheck
-conflict=nocheck
-action=nocheck
-basedir=default
diff --git a/scripts/functions/requirements/solaris b/scripts/functions/requirements/solaris
index 8596cab..2e2b100 100755
--- a/scripts/functions/requirements/solaris
+++ b/scripts/functions/requirements/solaris
@@ -33,7 +33,7 @@ requirements_solaris_install_libyaml_dev()
{
# Install OpenCSW repo
[[ -x /opt/csw/bin/pkgutil && -f /etc/opt/csw/pkgutil.conf ]] ||
- __rvm_try_sudo pkgadd -a $rvm_path/config/solaris/noask -d http://get.opencsw.org/now 'CSWpkgutil' > /dev/null 2>&1 || return $?
+ __rvm_try_sudo yes | pkgadd -d http://mirror.opencsw.org/opencsw/pkgutil-`uname -p`.pkg all > /dev/null 2>&1 || return $?
# Install libyaml from unstable branch
__rvm_try_sudo /opt/csw/bin/pkgutil -i -y libyaml_dev -t http://mirror.opencsw.org/opencsw/unstable > /dev/null 2>&1 || return $?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment