mirror of
https://github.com/deployphp/deployer.git
synced 2025-04-22 14:21:56 +02:00
add-apt-repository
pre-requisites (#4054)
* Install `provision:update` pre-requisites * `add-apt-repository` is broken with non-UTF-8 locales See: https://github.com/oerdnj/deb.sury.org/issues/56#issuecomment-191748654 * Moves env var to env
This commit is contained in:
parent
94cc0696b3
commit
ac261542db
@ -123,8 +123,17 @@ desc('Adds repositories and update');
|
||||
task('provision:update', function () {
|
||||
set('remote_user', get('provision_user'));
|
||||
|
||||
// Update before installing anything
|
||||
run('apt-get update', env: ['DEBIAN_FRONTEND' => 'noninteractive']);
|
||||
|
||||
// Pre-requisites
|
||||
run('apt install -y curl gpg software-properties-common', env: ['DEBIAN_FRONTEND' => 'noninteractive']);
|
||||
|
||||
// PHP
|
||||
run('apt-add-repository ppa:ondrej/php -y', env: ['DEBIAN_FRONTEND' => 'noninteractive']);
|
||||
run('apt-add-repository ppa:ondrej/php -y', env: [
|
||||
'DEBIAN_FRONTEND' => 'noninteractive',
|
||||
'LC_ALL' => 'C.UTF-8',
|
||||
]);
|
||||
|
||||
// Caddy
|
||||
run("curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor --yes -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg");
|
||||
|
Loading…
x
Reference in New Issue
Block a user