1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

php-settings.yml: TZ hack that avoids systemd, for GHA

This commit is contained in:
A Holt 2025-02-01 00:35:54 -05:00 committed by GitHub
parent 810c70e85b
commit c975dd21fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,8 +30,10 @@
# 1) Try spawning these "guyot/arm-runner-action@v2" GHA workflows with... use_systemd_nspawn: true
# 2) Weaken timedatectl command just below, trying this instead... shell: readlink /etc/localtime | sed 's#^/usr/share/zoneinfo/##'
- name: Extract Time Zone from symlink /etc/localtime &/or text file /etc/timezone (or lack thereof!)
command: timedatectl show -p Timezone --value
#- name: Extract Time Zone from symlink /etc/localtime &/or text file /etc/timezone (or lack thereof!)
# command: timedatectl show -p Timezone --value
- name: Extract Time Zone from symlink /etc/localtime, or declare UTC
shell: tmp=$(readlink /etc/localtime) && echo $tmp | sed 's|^/usr/share/zoneinfo/||' || echo UTC
register: tz_cli
- name: Store 'date.timezone = {{ tz_cli.stdout }}' (from above) in /etc/php/{{ php_version }}/fpm/php.ini and /etc/php/{{ php_version }}/cli/php.ini