diff options
| author | mo khan <mo.khan@gmail.com> | 2020-07-06 11:03:35 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-07-10 08:53:37 -0600 |
| commit | 36cdb0040abda394264455a1fdf3d6782af95ceb (patch) | |
| tree | 54093c956c0f4dcf4c2ad352847017aee9a88edc /config/scripts | |
| parent | c7385965b4166fb6ab2db3387c67cd54aef1b8df (diff) | |
Isolate license_management ruby from project
* Target ruby version 2.7.1
* Add spec to fetch gems from a custom source
* Add proxy to rubygems.org config
* Specify default env vars to support offline environment
* Cleanup custom certificates after spec
* Inline docker-test script
* Do not install license_finder with each installed ruby
* Increase gem log verbosity and include backtrace
* Extract test fixtures for the different ruby scenarios
* Find *.gemspec files in gems dir
* Use RUBYLIB to hijack src path
* Run scan from project path dir
Diffstat (limited to 'config/scripts')
| -rwxr-xr-x | config/scripts/license_management/postinst | 14 | ||||
| -rwxr-xr-x | config/scripts/license_management/postrm | 6 | ||||
| -rwxr-xr-x | config/scripts/license_management/preinst | 3 | ||||
| -rwxr-xr-x | config/scripts/license_management/prerm | 11 |
4 files changed, 34 insertions, 0 deletions
diff --git a/config/scripts/license_management/postinst b/config/scripts/license_management/postinst new file mode 100755 index 0000000..da63d3b --- /dev/null +++ b/config/scripts/license_management/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +PROGNAME=$(basename "$0") + +error_exit() +{ + echo "${PROGNAME}: ${1:-"Unknown Error"}" 1>&2 + exit 1 +} + +ln -s /opt/gitlab/bin/license_management /usr/local/bin/license_management +echo "Thank you for installing license_management!" + +exit 0 diff --git a/config/scripts/license_management/postrm b/config/scripts/license_management/postrm new file mode 100755 index 0000000..5b47b27 --- /dev/null +++ b/config/scripts/license_management/postrm @@ -0,0 +1,6 @@ +#!/bin/sh + +rm -f /usr/local/bin/license_management +echo "license_management has been uninstalled!" + +exit 0 diff --git a/config/scripts/license_management/preinst b/config/scripts/license_management/preinst new file mode 100755 index 0000000..dcef0c4 --- /dev/null +++ b/config/scripts/license_management/preinst @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "You're about to install license_management!" diff --git a/config/scripts/license_management/prerm b/config/scripts/license_management/prerm new file mode 100755 index 0000000..ef80795 --- /dev/null +++ b/config/scripts/license_management/prerm @@ -0,0 +1,11 @@ +#!/bin/sh + +PROGNAME=$(basename "$0") + +error_exit() +{ + echo "${PROGNAME}: ${1:-"Unknown Error"}" 1>&2 + exit 1 +} + +exit 0 |
