From 529f74d1b69fd82d075e5240c6d8daca0b1a718d Mon Sep 17 00:00:00 2001 From: gggeek Date: Sun, 13 Dec 2020 16:08:42 +0000 Subject: [PATCH] wip travis --- tests/ci/setup/create_user.sh | 0 tests/ci/setup/install_packages.sh | 2 ++ tests/ci/setup/setup_apache.sh | 8 ++++---- tests/ci/setup/setup_composer.sh | 0 tests/ci/setup/setup_php.sh | 2 ++ tests/ci/setup/setup_php_travis.sh | 5 +++-- tests/ci/setup/setup_privoxy.sh | 5 +++-- 7 files changed, 14 insertions(+), 8 deletions(-) mode change 100644 => 100755 tests/ci/setup/create_user.sh mode change 100644 => 100755 tests/ci/setup/install_packages.sh mode change 100644 => 100755 tests/ci/setup/setup_apache.sh mode change 100644 => 100755 tests/ci/setup/setup_composer.sh mode change 100644 => 100755 tests/ci/setup/setup_php.sh mode change 100644 => 100755 tests/ci/setup/setup_php_travis.sh mode change 100644 => 100755 tests/ci/setup/setup_privoxy.sh diff --git a/tests/ci/setup/create_user.sh b/tests/ci/setup/create_user.sh old mode 100644 new mode 100755 diff --git a/tests/ci/setup/install_packages.sh b/tests/ci/setup/install_packages.sh old mode 100644 new mode 100755 index c760675..9775818 --- a/tests/ci/setup/install_packages.sh +++ b/tests/ci/setup/install_packages.sh @@ -1,5 +1,7 @@ #!/bin/sh +# Has to be run as admin + set -e DEBIAN_FRONTEND=noninteractive apt-get install -y \ diff --git a/tests/ci/setup/setup_apache.sh b/tests/ci/setup/setup_apache.sh old mode 100644 new mode 100755 index 781f203..193d399 --- a/tests/ci/setup/setup_apache.sh +++ b/tests/ci/setup/setup_apache.sh @@ -1,12 +1,12 @@ #!/bin/sh -set -e - +# Install and configure apache2 +# Has to be run as admin # @todo make this work across all apache versions (precise to focal) -SCRIPT_DIR="$(dirname -- "$(readlink -f "$0")")" +set -e -# install and configure apache2 +SCRIPT_DIR="$(dirname -- "$(readlink -f "$0")")" DEBIAN_FRONTEND=noninteractive apt-get install -y apache2 diff --git a/tests/ci/setup/setup_composer.sh b/tests/ci/setup/setup_composer.sh old mode 100644 new mode 100755 diff --git a/tests/ci/setup/setup_php.sh b/tests/ci/setup/setup_php.sh old mode 100644 new mode 100755 index ad94b81..e45765c --- a/tests/ci/setup/setup_php.sh +++ b/tests/ci/setup/setup_php.sh @@ -1,5 +1,7 @@ #!/bin/sh +# Has to be run as admin + # To be kept in sync with setup_php_travis.sh set -e diff --git a/tests/ci/setup/setup_php_travis.sh b/tests/ci/setup/setup_php_travis.sh old mode 100644 new mode 100755 index fd37f14..63ddcad --- a/tests/ci/setup/setup_php_travis.sh +++ b/tests/ci/setup/setup_php_travis.sh @@ -39,8 +39,9 @@ if [ -d ~/.phpenv/versions/${PHPVER}/etc/php-fpm.d ]; then fi fi +# @todo run php-fpm as root, and set up 'travis' as user in www.conf, instead ? ~/.phpenv/versions/${PHPVER}/sbin/php-fpm # @todo configure apache for php-fpm via mod_proxy_fcgi... -sudo a2enconf php${PHPVER}-fpm -sudo service apache2 restart +#sudo a2enconf php${PHPVER}-fpm +#sudo service apache2 restart diff --git a/tests/ci/setup/setup_privoxy.sh b/tests/ci/setup/setup_privoxy.sh old mode 100644 new mode 100755 index a0477dd..c39e62f --- a/tests/ci/setup/setup_privoxy.sh +++ b/tests/ci/setup/setup_privoxy.sh @@ -1,8 +1,9 @@ #!/bin/sh -set -e +# Install and configure privoxy +# Has to be run as admin -# install and configure privoxy +set -e SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" -- 2.43.0