Browse Source

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

Yunohost-Bot 8 tháng trước cách đây
mục cha
commit
46aab2b9ef
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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