Require apt-get update for nginx

This commit is contained in:
Modulos 2017-05-29 21:20:18 +02:00
parent 13cfe5df21
commit 9e94ba36df
2 changed files with 4 additions and 4 deletions

View file

@ -3,14 +3,14 @@ upstream php-handler {
}
server {
listen 80;
listen [::]:80;
server_name cloud.ungleich.ch;
# enforce https
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name cloud.ungleich.ch;
ssl_certificate /etc/ssl/certs/star.ungleich.ch.crt;

View file

@ -44,12 +44,12 @@ db_name=$(cat "$__object/parameter/db-name")
# Install packages
for package in php7.0-common php7.0-gd php7.0-json php7.0-pgsql php7.0-curl \
php7.0-intl php7.0-mcrypt php7.0-imagick \
php7.0-zip php7.0-apcu php7.0-mbstring php7.0-xml php7.0-fpm
php7.0-zip php7.0-apcu php7.0-mbstring php7.0-xml php7.0-fpm \
nginx
do require="__apt_update_index" __package $package --state=present
done
__package postgresql --state=present
__package nginx --state=present
__package curl --state=present
# Configure packages