Skip to content

Commit

Permalink
remove all the unnecessary args for apache-nas
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed Nov 8, 2024
1 parent e1412f2 commit e89df5b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion apache-nas/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: apache-nas
description: A Helm chart for deploying a Apache-httpd server
type: application
version: 1.2.0
version: 1.2.1
appVersion: "1.16.0"
18 changes: 0 additions & 18 deletions apache-nas/templates/apache-nas-depl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,6 @@ spec:
{{- if .Values.nas.extraVolumeMounts }}
{{- .Values.nas.extraVolumeMounts | toYaml | nindent 10 }}
{{- end }}
command:
- /bin/bash
args:
- -c
- apt update ;
apt install -y libpq-dev ssmtp ;
sed -i "s/mailhub=mail/mailhub=georchestra-smtp-svc/" /etc/ssmtp/ssmtp.conf ;
sed -i 's/#FromLineOverride=YES/FromLineOverride=YES/' /etc/ssmtp/ssmtp.conf ;
printf "[mail function]\nsendmail_path = /usr/sbin/ssmtp -t\n" > /usr/local/etc/php/conf.d/sendmail.ini ;
docker-php-ext-install pgsql pdo_pgsql ;
apt-get clean ;
rm -rf /var/lib/apt/lists/* ;
groupmod --gid 999 www-data ;
usermod --non-unique --uid 999 --gid 999 www-data ;
chown -R www-data /run/apache2 /run/lock/apache2 /var/cache/apache2/mod_cache_disk /var/log/apache2 ;
printf "upload_max_filesize=50M\npost_max_size=50M\n" > /usr/local/etc/php/conf.d/upload-size-customizations.ini ;
a2enmod rewrite ;
exec apache2-foreground
volumes:
- name: apache-nas-data
persistentVolumeClaim:
Expand Down

0 comments on commit e89df5b

Please sign in to comment.