mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
php-settings.yml: More complete shell hack, equiv to timedatectl
This commit is contained in:
parent
c975dd21fc
commit
f22ba85c49
1 changed files with 4 additions and 4 deletions
|
@ -30,10 +30,10 @@
|
||||||
# 1) Try spawning these "guyot/arm-runner-action@v2" GHA workflows with... use_systemd_nspawn: true
|
# 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/##'
|
# 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!)
|
- name: Extract Time Zone from symlink /etc/localtime, text file /etc/timezone, or if all else fails declare Etc/UTC
|
||||||
# command: timedatectl show -p Timezone --value
|
# command: timedatectl show -p Timezone --value
|
||||||
- name: Extract Time Zone from symlink /etc/localtime, or declare UTC
|
# 2025-02-01: "guyot/arm-runner-action@v2" GHA workflows don't seem to work with "use_systemd_nspawn: true", so hack in the equivalent of timedatectl...
|
||||||
shell: tmp=$(readlink /etc/localtime) && echo $tmp | sed 's|^/usr/share/zoneinfo/||' || echo UTC
|
shell: tmp=$(readlink /etc/localtime) && echo $tmp | sed 's|^/usr/share/zoneinfo/||' || cat /etc/timezone || echo Etc/UTC
|
||||||
register: tz_cli
|
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
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue