Ver código fonte

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

Yunohost-Bot 8 meses atrás
pai
commit
46aab2b9ef
2 arquivos alterados com 2 adições e 2 exclusões
  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