Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added plsh extension.

  • Loading branch information...
commit 5fec9bfef21a30d52c1654871ba83a9f31ec6dea 1 parent a57c8dd
@wayneeseguin wayneeseguin authored
Showing with 23 additions and 4 deletions.
  1. +23 −4 postgresql/bin/extensions/install
View
27 postgresql/bin/extensions/install
@@ -7,9 +7,28 @@ typeset name
for name in ${extension_args}
do
- path enter "${sm_path}/src/postgresql-${package_version}/contrib/${name}"
- make all install &&
- "${sm_path}/pkg/active/bin/psql" -U ${service_user} postgres \
- -c "CREATE EXTENSION IF NOT EXISTS ${name};"
+ case ${name} in
+ (plsh)
+ if path exists "${sm_path}/src/postgresql-${package_version}/contrib/${name}"
+ then
+ path enter "${sm_path}/src/postgresql-${package_version}/contrib/${name}"
+ git reset --hard HEAD
+ git pull origin master
+ else
+ git clone git://github.com/petere/plsh.git \
+ "${sm_path}/src/postgresql-${package_version}/contrib/${name}"
+ fi
+ ;;
+ esac
+
+ if path exists "${sm_path}/src/postgresql-${package_version}/contrib/${name}"
+ then
+ path enter "${sm_path}/src/postgresql-${package_version}/contrib/${name}"
+ make all install &&
+ "${sm_path}/pkg/active/bin/psql" -U ${service_user} postgres \
+ -c "CREATE EXTENSION IF NOT EXISTS ${name};"
+ else
+ log error "Extension does not exist in ${sm_path}/src/postgresql-${package_version}/contrib/${name}, unable to install."
+ fi
done
Please sign in to comment.
Something went wrong with that request. Please try again.