From bd58694ac19a821a647fa25bcf2d2e549c06e7f5 Mon Sep 17 00:00:00 2001 From: Kevin Porras Date: Fri, 12 Nov 2021 14:39:09 -0600 Subject: [PATCH 1/2] Add apt installation method. --- README.md | 7 ++++++- config/constants.yml | 3 ++- templates/README.twig | 7 ++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6d681124f..70003d8ef 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,12 @@ brew install pantheon-systems/external/terminus ### Ubuntu / WinWSL+Ubuntu: -`*** TBD ***` +``` +# Setup repository +curl -s https://packagecloud.io/install/repositories/pantheon/public/script.deb.sh | bash +# Install package +apt install -y terminus +``` ### Other installation methods diff --git a/config/constants.yml b/config/constants.yml index f55f369cb..31736112a 100644 --- a/config/constants.yml +++ b/config/constants.yml @@ -54,7 +54,8 @@ TERMINUS_COMMAND_SITE_OPTIONS_REGION: null # Package Settings TERMINUS_BREW_TAP: '*** TBD ***' TERMINUS_BREW_PACKAGE: 'pantheon-systems/external/terminus' -TERMINUS_DEBIAN_PACKAGE_INSTALL: '*** TBD ***' +TERMINUS_DEBIAN_APT_REPO: 'pantheon/public' +TERMINUS_DEBIAN_PACKAGE_INSTALL: 'apt install -y terminus' # Testing TERMINUS_TEST_MODE: false diff --git a/templates/README.twig b/templates/README.twig index 3546bae7a..8aea41fa4 100644 --- a/templates/README.twig +++ b/templates/README.twig @@ -58,7 +58,12 @@ brew install {{ brew_package }} ### Ubuntu / WinWSL+Ubuntu: -`{{ debian_package_install | raw }}` +``` +# Setup repository +curl -s https://packagecloud.io/install/repositories/{{ debian_apt_repo }}/script.deb.sh | bash +# Install package +{{ debian_package_install | raw }} +``` ### Other installation methods From c6901195e62bd9057a09cf380d09a2602818b325 Mon Sep 17 00:00:00 2001 From: Tom Stovall <119924+stovak@users.noreply.github.com> Date: Wed, 1 Dec 2021 19:22:10 -0800 Subject: [PATCH 2/2] Update README.twig --- templates/README.twig | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/templates/README.twig b/templates/README.twig index 8aea41fa4..a11eff9d9 100644 --- a/templates/README.twig +++ b/templates/README.twig @@ -59,10 +59,13 @@ brew install {{ brew_package }} ### Ubuntu / WinWSL+Ubuntu: ``` -# Setup repository -curl -s https://packagecloud.io/install/repositories/{{ debian_apt_repo }}/script.deb.sh | bash -# Install package -{{ debian_package_install | raw }} +git clone https://github.com/pantheon-systems/terminus \ + && cd terminus \ + && git checkout 3.x \ + && composer install \ + && composer phar:build \ + && composer phar:install \ + && rm -Rf /tmp/terminus ``` ### Other installation methods