Explorar el Código

[autopatch] Autopatch to use timedatectl instead of legacy /etc/timezone

Yunohost-Bot hace 9 meses
padre
commit
46aab2b9ef
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      scripts/install
  2. 1 1
      scripts/upgrade

+ 1 - 1
scripts/install

@@ -4,7 +4,7 @@ source _common.sh
 source /usr/share/yunohost/helpers
 
 secret=$(ynh_string_random --length=24)
-timezone=$(cat /etc/timezone)
+timezone=$(timedatectl show --value --property=Timezone)
 
 #=================================================
 # INSTALL DEPENDENCIES

+ 1 - 1
scripts/upgrade

@@ -4,7 +4,7 @@ source _common.sh
 source /usr/share/yunohost/helpers
 
 secret=$(ynh_string_random --length=24)
-timezone=$(cat /etc/timezone)
+timezone=$(timedatectl show --value --property=Timezone)
 
 #=================================================
 # STOP SYSTEMD SERVICE